[Serusers] Help! DNS?
ryan nalupa
ryanalupa at yahoo.com.ph
Tue Feb 21 03:34:18 CET 2006
hello! i was just wondering, since i'm still new here, where will i config this? i'm using debian sarge amd64 and ser 0.9.4.
DNS SVR Resource Records
It is important that your SIP clients can connect to your server for purposes of registration and call control. You might even want to have a redundant server to handle calls if your primary server is unavailable.
These requirements can be meet by using DNS SVR Resource Records, available in BIND 8.X and up releases.
The format for a SVR RR is this:
_service._protocol SVR Priority Weight Port hostname
In this case we want to establish an entry for our primary SIP server, gateway.mydomain.com, that will listen on UDP port 5060. The entry will look like this:
_sip._udp SRV 0 0 5060 gateway.mydomain.com
Placement of the new resource record is important. Here is a sample zone file:
; zone 'mydomain.com' last serial 1998071308 $ORIGIN com. mydomain 86400 IN SOA gateway.mydomain.com. postmaster.mydomain.com. ( 1998111908 ; Serial 36000 ; Refresh 900 ; Retry 36000 ; Expire 28800 ); Minimum IN NS gateway.mydomain.com. IN NS ns3.backupdomain.com. IN MX 1 gateway.mydomain.com. IN A 192.168.0.1 ;If we place the SRV record above the next line it fails to load $ORIGIN fitawi.com. _sip._udp SRV 0 0 5060 gateway.mydomain.com. gateway IN A 192.168.0.1 www IN CNAME gateway.mydomain.com.
After reloading your zone file you can verify that the entry is working by using dig.
dig -t SRV _sip._udp.mydomain.com
The results should look something like this:
; <<>> DiG 9.1.0 <<>> -t SRV _sip._udp.mydomain.com ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 32654 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 1 ;; QUESTION SECTION: ;_sip._udp.mydomain.com. IN SRV ;; ANSWER SECTION: _sip._udp.mydomain.com. 86400 IN SRV 0 0 5060 gateway.mydomain.com. ;; AUTHORITY SECTION: mydomain.com. 86400 IN NS ns3.elsewhere.com. mydomain..com 86400 IN NS gateway. mydomain.com. ;; ADDITIONAL SECTION: gateway. mydomain.com. 86400 IN A 192.168.0.150 ;; Query time: 6 msec ;; SERVER: 192.168.0.150#53(192.168.0.150) ;; WHEN: Tue Dec 3 08:34:17 2002 ;; MSG SIZE rcvd: 132
thanks in advance!
ryan
---------------------------------
Do you Yahoo!?
Try the new Yahoo! Philippines Front Page!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20060220/2ac1988f/attachment.htm>
More information about the sr-users
mailing list