The format for a SVR RR is this:
_service._protocol SVR Priority Weight Port hostname
In this case i want to establish an entry for our primary SIP server, gateway.mydomain.com, that will listen on UDP port 5060
_sip._udp SRV 0 0 5060 gateway.mydomain.com
_______________________________________________
BIND rpms are installed
_______________________________________________
I need to configure the named.conf file
// Default named.conf generated by install of bind-9.2.4-5_EL3
options {
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
};
include "/etc/rndc.key";
___________________________________________________
Then i guess i need to create a zone file.
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 the zone file I can verify that the entry is working by using dig.
_______________________________________________
The zone file is confusing me anyone have hints on best way to complete this.
Cheers
Greg