LinuxQuestions.org
Register a domain and help support LQ
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
 
LinkBack Search this Thread
Old 04-20-2008, 11:49 PM   #1
pridefc
Member
 
Registered: Nov 2005
Distribution: redhat, debian, ubuntu
Posts: 47

Rep: Reputation: 15
With bind DNS on localhost, still need to add entries to /etc/hosts?


When you have bind DNS running on the system, do you still need to run the entries for the localhost records to /etc/hosts?
My Bind configuration looks something like this (omitted some info. not relevent like retry, expire, minimum, etc...):
zone file:
@ IN SOA mail.hello.com. root.localhost. (
.....
.....


mail A 192.168.1.10
web A 192.168.1.10
www A 192.168.1.10
search A 192.168.1.20
forum A 192.168.1.30
ftp CNAME mail

/etc/resolv.conf:
search hello.com
nameserver 127.0.0.1


/etc/hosts:
127.0.0.1 locahost
127.0.1.1 mail


** do I need to add below (localhost entries which have been added to the zone file already) to /etc/hosts?:
192.168.1.10 mail.hello.com mail
192.168.1.10 web.hello.com web
192.168.1.10 www.hello.com www
192.168.1.10 ftp.hello.com ftp
 
Old 04-21-2008, 12:24 AM   #2
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 120Reputation: 120
You should still have the default entries there ("127.0.0.1 localhost localhost.localdomain" or similar), but otherwise no.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to add new hosts to dns yyazici Linux - Server 6 01-25-2007 08:35 AM
Need a script to add DNS entries suhasingale Linux - Enterprise 2 03-08-2006 11:47 PM
add a subdomian in the dns server bind papitu76 Linux - Software 3 01-07-2005 02:56 AM
Can't ping localhost (/etc/hosts and DNS are OK) Mr. Gone Linux - Networking 9 10-16-2004 03:05 PM
How to add BIND DNS server to startup in Red Hat? BxBoy Linux - Networking 4 03-01-2004 12:33 PM


All times are GMT -5. The time now is 09:05 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration