LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-13-2009, 05:05 AM   #1
rhce_naresh
LQ Newbie
 
Registered: Aug 2009
Posts: 6

Rep: Reputation: 0
Question netdns


HI
(patience required)
I am working on Centos 5 and i was planning to make the dns server and i install on the required files and i configured the configuration files

vi /var/named/chroot/etc/named.rfs... (in main file i add these lines )


zone "domain1.logic.com." {
type master;
file "forward.zone";#this is the zone file name for Logic.com forward lookup.
allow-update { none; };
};

zone "1.0.168.192.in-addr.arpa" {
type master;
file "reverse.local";# this is the zone file name for Logic.com reverse lookup
allow-update { none; };
};



And in forward.zone.

$TTL 86400
@ IN SOA station1.domain1.logic.com. root.domain1.logic.com. (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum

IN NS station1.domain1.liogic.com.
domain1.logic.com. IN A 192.168.0.1
station1.domain1.logic.com. IN A 192.168.0.2
IN AAAA ::1
~

And in Reverse.local:-

$TTL 86400
@ IN SOA station1.domain1.logic.com. root.domain1.logic.com. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS station1.domain1.dotlogic.com.
1.0.168.192.in-addr.arpa. IN PTR domain1.logic.com.
~

this is how i configured the files.

And i crossed checked using the named-checkconf (the result is successful)and the service start is also successful.

i have given the ip address 192.168.0.1 gateway same and dns also same.
where i did not manually changed any thing in the files
vi /etc/hosts
vi /etc/resolv.conf
vi /etc/sysconfig/networking
vi /etc/sysconfig/networking-scripts

i have two nic cards where i used one for isp and the other for no use so i just configured ip for that card and there is a nice self ping success.

when i try to dig the logic.com i am getting the information of the isps dns information.
i tried to do the same with the dig 192.168.0.1 it did not give the result.

what is the mistake i was doing how do i get the correct result this is my first dns and the main dns for me.?

should i write manually the information of the dns in resolv.conf files.
then what is the use how can i get conform where it is resloving the ip address are not.?

And i dont want to see the information of my isp bcoz i am giving the particular ip address to dig it has to get that information for me plz say whats the mistake ????

Last edited by rhce_naresh; 08-13-2009 at 05:07 AM.
 
Old 08-13-2009, 10:03 AM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Hi naresh,

To query your own dns first you will need to set your /etc/resolv.conf accordingly
eg.
domain domain1.logic.com
nameserver 192.168.0.2

The next step would be to add your isp's nameservers as forwarders in your named.conf :

forwarders { a.a.a.a ; b.b.b.b; };

..you could also allow recursive lookups for your local lan range:

allow-recursion {192.168.0.0/24;};


To test your local dns :

dig @192.168.0.2 domain1.logic.com NS
dig @192.168.0.2 www.google.com

To test correct networking configuration:

host www.google.com or ping www.google.com

You can also use named-checkzone to validate your zone files


cheers
 
  


Reply



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



LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:25 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
Open Source Consulting | Domain Registration