Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RH Linux 7.1 and DNS

Status
Not open for further replies.

coutoj

IS-IT--Management
Jun 14, 2001
39
CA
I have my linux server configured and i was just wondering how to start the dns server.
If you have any idea's you can give me to test the configuration of the server i would love to test it!

Also can someone explain to me how to create a secondary dns server.

thank you,
jason
 
Take a look at the DNS-HOWTO -- it has excellent information about getting your DNS Server up and running. Alos, think about getting the "DNS and Bind" book by O'Reilley Publishing, that is by far the best source of info for all your DNS needs.

Hope this helps,
Paul
 
Hi
First of all you need rpm package for DNS.
rpm -qa |grep name

Then fun began. Do you have anything in your mind for your dns name?
Then we will start next step.


Thanks
Sachin
 
Hi,

Firstly make sure you have the 'bind' and 'bindconf' rpms installed (not just bind-utils). Then you have to create a /etc/named.conf file. The easiest way is to create an empty file by doing 'touch /etc/named.conf' as root.

After that you can use bindconf to set-up your config graphically - use 'apply' to save changes to /etc/named.conf .

To setup the dns server as a service do the usual setting of runlevels via :

/sbin/chkconfig --level 2345 named on

You can start/restart/check manually by doing :

/etc/rc.d/init.d/named start
/etc/rc.d/init.d/named stop
/etc/rc.d/init.d/named restart
/etc/rc.d/init.d/named status

Just doing /etc/rc.d/init.d/named
will show all the possible arguments.

Then its a simple matter of configuring your /etc/named.conf file !

Rgds, Iain
 
I have the server setup but now it won't work. when we test one of our sites it won't resolve the address. The page just times out.

I am using Linux 7.1 with bind 9.1.0 and i use the following command to start bind

/etc/rc.d/init.d/named start

Thanks,
jason
 
HI
After installatin of rpm package. what did you do? did you just start named?

Sachin
 
u need to make a database with your DNS records.. A, MX and CNAME records... for your website, u will have to create a A record that point the to the IP address of your web server... also, u will need to configure your web server to answer requests made for it will use the HTTP header request from your browser... an example A record for your would be:

;
; Addresses for the canonical names
;
IN A 1.2.3.4

and that would resolve your to the web server IP address..

good luck
 
u need to make a database with your DNS records.. A, MX and CNAME records... for your website, u will have to create a A record that point the to the IP address of your web server... also, u will need to configure your web server to answer requests made for it will use the HTTP header request from your browser... an example A record for your would be:

;
; Addresses for the canonical names
;
IN A 1.2.3.4

and that would resolve your to the web server IP address..

good luck
 
I installed the 7.1 version of linux and set it up as a dns server. I used the current version of bind (9.1.0) and used bindconf in the Gnome windows to setup my zones. I tested it and everything seemed fine. but after a little while of leaving it no mail gets through and our sub sites don't get resolved.

ie. = ok
test.temp.com = not ok.

I checked all the zone files and all the pointers and addresses are ok.

Jason
 
Hi,

Why not try using dig or nslookup to see what the nameserver is resolving..

Dig test.temp.com (Query using default nameserver)
Dig temp.com MX (Look up Mail exchanger for domain)
Dig @localhost test.temp.com (query your nameserver)
Dig @158.43.240.3 test.temp.com (query using some ISP's nameserver)

and so on... (see 'man dig')
This might help in debugging the problem.

Rgds
 
Usually a reverse issue.
check your in.addr.arpa file.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top