JustPaste.it

Hey so Ive got bind9 installed here are some config files:

 

/etc/bind/named.conf.local

zone "open-ims.test" {
type master;
file "pri/open-ims.dnszone";
notify no;
};

 

/etc/bind/named.conf.options

options {
directory "/var/cache/bind";

// If there is a firewall between you and nameservers you want
// to talk to, you may need to fix the firewall to allow multiple
// ports to talk. See http://www.kb.cert.org/vuls/id/800113

// If your ISP provided one or more IP addresses for stable
// nameservers, you probably want to use them as forwarders.
// Uncomment the following block, and insert the addresses replacing
// the all-0's placeholder.

// forwarders {
// 0.0.0.0;
// };

auth-nxdomain no; # conform to RFC1035
listen-on-v6 { any; };
};

 

/etc/bind/pri/open-ims.dnszone

$ORIGIN open-ims.test.
$TTL 1W
@ 1D IN SOA localhost. root.localhost. (
2006101001 ; serial
3H ; refresh


15M ; retry
1W ; expiry
1D ) ; minimum

1D IN NS ns

ns 1D IN A 127.0.0.1

pcscf 1D IN A 127.0.0.1
_sip.pcscf 1D SRV 0 0 4060 pcscf
_sip._udp.pcscf 1D SRV 0 0 4060 pcscf
_sip._tcp.pcscf 1D SRV 0 0 4060 pcscf



icscf 1D IN A 127.0.0.1
_sip 1D SRV 0 0 5060 icscf
_sip._udp 1D SRV 0 0 5060 icscf
_sip._tcp 1D SRV 0 0 5060 icscf

open-ims.test. 1D IN A 127.0.0.1


open-ims.test. 1D IN NAPTR 10 50 "s" "SIP+D2U" "" _sip._udp
open-ims.test. 1D IN NAPTR 20 50 "s" "SIP+D2T" "" _sip._tcp


scscf 1D IN A 127.0.0.1
_sip.scscf 1D SRV 0 0 6060 scscf
_sip._udp.scscf 1D SRV 0 0 6060 scscf

_sip._tcp.scscf 1D SRV 0 0 6060 scscf


trcf 1D IN A 127.0.0.1
_sip.trcf 1D SRV 0 0 3060 trcf
_sip._udp.trcf 1D SRV 0 0 3060 trcf
_sip._tcp.trcf 1D SRV 0 0 3060 trcf


bgcf 1D IN A 127.0.0.1
_sip.bgcf 1D SRV 0 0 7060 bgcf
_sip._udp.bgcf 1D SRV 0 0 7060 bgcf
_sip._tcp.bgcf 1D SRV 0 0 7060 bgcf


mgcf 1D IN A 127.0.0.1
_sip.mgcf 1D SRV 0 0 8060 mgcf
_sip._udp.mgcf 1D SRV 0 0 8060 mgcf
_sip._tcp.mgcf 1D SRV 0 0 8060 mgcf


hss 1D IN A 127.0.0.1

ue 1D IN A 127.0.0.1

presence 1D IN A 127.0.0.1

pcrf 1D IN A 127.0.0.1
clf 1D IN A 127.0.0.1

 

/etc/resolv.conf

 nameserver 127.0.0.1
domain open-ims.test
search open-ims.test


when I restart bind9 and try "dig @127.0.0.1 pcscf.open-ims.test" i get:

 


; <<>> DiG 9.7.2-P3 <<>> @127.0.0.1 pcscf.open-ims.test
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 41317
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;pcscf.open-ims.test. IN A

;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Mon Mar 14 19:05:12 2011
;; MSG SIZE rcvd: 37


why I dont get any answer?