LinuxQuestions.org
Help answer threads with 0 replies.
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 04-21-2008, 12:49 AM   #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, 01:24 AM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
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



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

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

All times are GMT -5. The time now is 04:28 PM.

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