DNS BIND 2 domains with 1 ip
How can i register on dns bind, 2 domains with same ip? Below is the configuration of my dns.
zone "zget.com" { type master; file "/etc/bind/db.zget.com"; }; //reverse zone zone "168.192.in-addr.arpa" { type master; file "/etc/bind/db.192"; }; ; ; BIND data file for local loopback interface ; $TTL 604800 @ IN SOA ns.zget.com. root.ns.zget.com. ( 17 ; Serial 604800 ; Refresh 86400 ; Retry 2419200 ; Expire 604800 ) ; Negative Cache TTL ; @ IN NS ns.zget.com. @ IN A 192.168.10.13 @ IN AAAA ::1 ns IN A 192.168.10.13 redmine IN A 192.168.10.15 ; CNAME SECTION redmine.zget.com CNAME redmine.get.com. redmine A 192.168.10.15 ; ; BIND reverse data file for local loopback interface ; $TTL 604800 @ IN SOA ns.zget.com. root.ns.zget.com. ( 15 ; Serial 604800 ; Refresh 86400 ; Retry 2419200 ; Expire 604800 ) ; Negative Cache TTL ; @ IN NS ns. 13 IN PTR ns.zget.com. 15 IN PTR redmine.zget.com. When i run the dig command on redmine.zget.com it will popup its ip on terminal but on redmine.get.com the ip did not pop up. $ dig redmine.zget.com +short 192.168.10.15 $ dig redmine.get.com +short but this one it has no respond: I also try to ping the redmine.get.com having also a respond $ ping redmine.get.com PING redmine.get.com (192.168.10.15) 56(84) bytes of data. 64 bytes from redmine.get.com (192.168.10.15): icmp_seq=1 ttl=64 time=0.722 ms Do I miss something in our configuration? thank you for you help. |
You have to have an entry for get.com zone as well as zget.com zone in your named.conf. They can both point to the same file since you're using @ in the file it will be substituted for whichever zone you're querying.
Adding zones to named.conf does not "Register" them. To "Register" you'd have to pay a Registrar (assuming the zones are not already registered.) You can use the zones internally but I'd advise against it. There are issues with domain leakage between internally used unregistered zones and externally registered zones. |
You have to have an entry for get.com zone as well as zget.com zone in your named.conf. They can both point to the same file since you're using @ in the file it will be substituted for whichever zone you're querying. ----- Can you give me example on this.
this is the content of my name.conf. include "/etc/bind/named.conf.options"; include "/etc/bind/named.conf.local"; include "/etc/bind/named.conf.default-zones"; Thanks |
All times are GMT -5. The time now is 02:00 AM. |