How to configure DNS in CentOS

5 pts.
Tags:
CentOS
CentOS administration
CentOS configuration
CentOS DNS configuration
DNS configuration
Linux
Linux configuration
Red Hat Enterprise Linux
How to configure DNS in Cent OS?

Answer Wiki

Thanks. We'll let you know when a new response is added.

Here is a <a href=”http://www.howtoforge.com/centos-5.1-server-lamp-email-dns-ftp-ispconfig”> tutorial </a> on setting up the various network aspects of Cent OS, including DNS setup. You might find <a href=”http://www.brennan.id.au/08-Domain_Name_System_BIND.html”> This site</a> helpful as well.
Good Luck!
-Flame

Discuss This Question: 5  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • SaadKhan
    Hello, In Centos 5 DNS can we configured by modifying the resolv.conf file and defining the DNS in it like: Example: nameserver 202.163.96.3 Once applied reboot the system it'll work.
    15 pointsBadges:
    report
  • petkoa
    Hi Jeetendra, I'll try to systematize the discusion alittle ;o) So, what do you intend to accomplish on your CentOS box - (a) to get domain names resolved for the box, (b) to get them resolved for a number of hosts on your network, or (c) to run a DNS server for your zone (or yours and some slave zones)? (a) If you want just domain names resolved for the box, just edit /etc/resolv.conf as SaadKhan suggested, you don't need even to reboot, the changes are "active" immediately... If, however, you get IP address by DHCP, and the server-pushed DNS server is not working for you, make sure that dhcpcd or whatever DHCP client you have will not overwrite /etc/resolv.conf. This is the default behavior of the DHCP clients and for good reason. Look at the client man pages which startup parameters to use ( -R is the cli switch for dhcpcd) (b) If you want domain names resolved for the hosts on your network, you will run a caching DNS server, which is much the same as (c), but without setting up zone files... so go to (c). In fact, there have to be some RPMs with a caching server "out of the box", so you can opt to use them (and better do). (c) If you want to set up a DNS server, first create /etc/named.conf with the necessary settings for your server (logging; security - keys and ACLs; views - external and internal, if you need them; and finally, zone files locations) and the zone files... Here you can use the second link Flame provided, and also man pages for your version of bind (named, the nameserver) and RFC for zone file format (I can't cite RFC numbers, but you'll find them in bind documentation). I hope this will be of some help, Good luck, Petko
    3,120 pointsBadges:
    report
  • Servercentos
    how to change dns server for client at server centos os?i already change at system-administrations-network-dns server.but at client not change anything.
    10 pointsBadges:
    report
  • Chippy088
    @linkhochoo please try to only include sites that are relevant to the question. Your link is of no use to IT related questions.
    4,625 pointsBadges:
    report
  • Michael Tidmarsh
    29,385 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following