Dns Configuration on CentOs 6

45 views
Skip to first unread message

Ankit Soni

unread,
Apr 2, 2013, 12:08:55 PM4/2/13
to vg...@googlegroups.com

Hi.....

    I search many blog and sites for configuring dns with single ip to multiple name server
Is it possible? If possible then i want to configure like that.....

Ex....
Ip: 192.168.0.1
And multiple name server like....
Www.abc.com
Www.123.com
Www.akki.com
Etc....

Thanks and regard

Ankit
(RHCSA, RHCE)

Sham Arsiwala

unread,
Apr 2, 2013, 10:39:08 PM4/2/13
to Linux Group
Hi,

On Tue, Apr 2, 2013 at 9:38 PM, Ankit Soni <akki...@gmail.com> wrote:

Hi.....

    I search many blog and sites for configuring dns with single ip to multiple name server
Is it possible? If possible then i want to configure like that.....

Ex....
Ip: 192.168.0.1
And multiple name server like....
Www.abc.com
Www.123.com
Www.akki.com
Etc....

Thanks and regard

Ankit
(RHCSA, RHCE)


make sure you should have proper working DNS entry for both the server name pointing to the same ip address, you can also go for CNAME Record.

hope it help's you.

--
Please read http://www.catb.org/~esr/faqs/smart-questions.html before posting.
You received this message because you are subscribed to the "Vibrant GNU/Linux User Group".
To stop receiving emails from this group, mail to VGLUG+un...@googlegroups.com
To post to this group, send email to VG...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/VGLUG
 
---
You received this message because you are subscribed to the Google Groups "VGLUG" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vglug+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
--
Regards.:
SHAM P. ARSIWALA.
RHCSA, RHCE, RHCVA
M.: 9099099855, 9327247499.

CodeLogic

unread,
Apr 3, 2013, 12:16:16 AM4/3/13
to vg...@googlegroups.com
Dear Ankit,

Greetings from CodeLogic !

There are domains names :-
Etc

For which you will have a Zone file for each of those domain names....!

In the forward lookup Zone file make sure you have an A record pointing to the domain name :-

For 1:-

abc.com IN A 192.168.0.1
www IN CNAME abc.com.
ftp IN CNAME abc.com.

For 2:-

123.com IN A 192.168.0.1
www IN CNAME 123.com.
ftp IN CNAME 123.com.

For 3:-

akki.com IN A 192.168.0.1
www IN CNAME akki.com.
ftp IN CNAME akki.com.

Once you have the A record pointing to the right domain things shall work fine. 

If you want more information and would like to know more about DNS in detail you can attend the Knowledge Share "The Back bone of Internet DNS" which we are going to host on 14th of April 2013 in Ahmedabad. We shall have concept + practical in detail. 

Kindly follow the below link http://www.fossks.org

Warm Regards
Deep

Ankit Soni

unread,
Apr 27, 2013, 1:05:33 AM4/27/13
to vg...@googlegroups.com
Hi Mr Deep

I have configured basic dns and its working fine

[root@desktop ~]# /etc/init.d/named restart
Stopping named:                                            [  OK  ]
Starting named:                                            [  OK  ]
[root@desktop ~]#

but when i configured forwared.zone as you suggest

[root@desktop ~]# /etc/init.d/named restart
Stopping named:                                            [  OK  ]
Starting named:
Error in named configuration:
dns_master_load: forward.zone:14: ftp.ankit.com: multiple RRs of singleton type
dns_master_load: forward.zone:17: www.ankit.com: multiple RRs of singleton type
dns_master_load: forward.zone:18: ftp.ankit.com: multiple RRs of singleton type
zone ankit.com/IN: loading from master file forward.zone failed: multiple RRs of singleton type
zone ankit.com/IN: not loaded due to errors.
_default/ankit.com/IN: multiple RRs of singleton type
zone localhost/IN: loaded serial 0
zone 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/IN: loaded serial 0
zone 254.0.168.192.in-addr.arpa/IN: loaded serial 0
zone 0.in-addr.arpa/IN: loaded serial 0
                                                           [FAILED]
[root@desktop ~]#

# My Forward zone configuration is like that....

[root@desktop ~]#
[root@desktop ~]# cat /var/named/forward.zone
$TTL 1D
@ IN SOA desktop.ankit.com. root.desktop.ankit.com. (
                    0    ; serial
                    1D    ; refresh
                    1H    ; retry
                    1W    ; expire
                    3H )    ; minimum
        IN     NS    desktop.ankit.com.
desktop        IN     A    192.168.0.254
ftp        IN     CNAME     desktop.ankit.com.

###### My Optional Configuration ######

abc.com        IN     A    192.168.0.254

www        IN    CNAME    abc.com.
ftp        IN    CNAME    abc.com.

dream-akki.com    IN    A    192.168.0.254
www        IN    CNAME    dream-akki.com.
ftp        IN    CNAME    dream-akki.com.
[root@desktop ~]#

Give me the solution

Thanks & Regard

Ankit Soni
(RHCSA, RHCE)
~~~~~
"Linux is immortal, it is like perfume sprade all over the world...." Be happy using open source...


--
Please read http://www.catb.org/~esr/faqs/smart-questions.html before posting.
You received this message because you are subscribed to the "Vibrant GNU/Linux User Group".
To stop receiving emails from this group, mail to VGLUG+un...@googlegroups.com
To post to this group, send email to VG...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/VGLUG
 
---
You received this message because you are subscribed to the Google Groups "VGLUG" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vglug+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Akki....

nehal dattani

unread,
Apr 27, 2013, 4:15:53 AM4/27/13
to vg...@googlegroups.com
Hi ankit,

Please use a ready-made script available for the same purpose. This will save you from typo errors and any other error you might make while editing zone file.

Please read the instructions carefully before you actually make your zone file.

http://bash.cyberciti.biz/domain/create-bind9-domain-zone-configuration-file/
The production of too many useful things results in too many useless people.

With best regards,
Nehal Dattani
Reply all
Reply to author
Forward
0 new messages