LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-21-2015, 07:36 AM   #1
crltzn
LQ Newbie
 
Registered: Sep 2015
Posts: 8

Rep: Reputation: Disabled
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.
 
Old 09-21-2015, 08:59 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,580
Blog Entries: 14

Rep: Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969
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.
 
Old 09-21-2015, 10:52 AM   #3
crltzn
LQ Newbie
 
Registered: Sep 2015
Posts: 8

Original Poster
Rep: Reputation: Disabled
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Blocking Malicious Domains in DNS (Bind) bipinkdas Linux - Security 1 06-29-2014 04:35 PM
Hosting Multiple Domains on one IP Address in Bind DNS jayakumar01 Linux - Server 6 01-10-2012 07:59 AM
BIND DNS - MX, TXT and SPF records when hosting multiple domains on same machine? icebrian Linux - Networking 3 05-02-2011 09:21 AM
BIND/DNS - Two Different Domains jhewitt Linux - Networking 1 02-20-2004 08:54 PM
Bind/DNS with multiple domains, one IP dmarkow Linux - Networking 1 12-18-2003 01:07 PM


All times are GMT -5. The time now is 04:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration