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 10-20-2008, 12:13 AM   #1
tsaravan
Member
 
Registered: Jun 2005
Location: India
Posts: 101

Rep: Reputation: 15
DNS setup help


Hi,

i want to setup dns in fedora 9 to resolve private ip as mentioned below:

cms.eri.blr.in 192.168.0.10
km.eri.blr.in 192.168.0.11
pms.eri.blr.in 192.168.0.12
ess.eri.blr.in 192.168.0.13

The same system will be running squid proxy server and if user wants to access Internet the name resolution should be through ISP's dns server.

right now i have created hosts file and placed in the users system for name resolution of private IPs. But if any change in the IP, i have edit hosts file of each and every system which is a tedious process.

I need complete setup guide as per the above requirement and it would be nice if configured file is provided with explanation for me to understand.

regards,

Saravana.
 
Old 10-20-2008, 01:17 AM   #2
kenneho
Member
 
Registered: May 2003
Location: Oslo, Norway
Distribution: Ubuntu, Red Hat Enterprise Linux
Posts: 657

Rep: Reputation: 40
Maybe you should set up a local DNS server?
 
Old 10-20-2008, 01:21 AM   #3
tsaravan
Member
 
Registered: Jun 2005
Location: India
Posts: 101

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by kenneho View Post
Maybe you should set up a local DNS server?

Yes, i want to setup local DNS server on fedora 9 system.
 
Old 10-20-2008, 01:45 AM   #4
danboland
Member
 
Registered: Feb 2006
Location: NJ, USA
Distribution: Debian
Posts: 72

Rep: Reputation: 17
just set up bind9 and add an entry for those domains like you would any other. Never done this before but i would do something like this (no idea if it work though)

Code:
@       IN      SOA     hostname.domain.com. domains.domain.com. (
                        1181707685
                        10800
                        3600
                        604800
                        38400 )
cms.eri.blr.in.  IN      A        192.168.0.10
km.eri.blr.in.  IN      A        192.168.0.11
pms.eri.blr.in.  IN      A        192.168.0.12
ess.eri.blr.in.  IN      A        192.168.0.13

But this might not be the exact way to do it. you should consult the bind man pages.


Dan
 
Old 10-20-2008, 01:56 AM   #5
tsaravan
Member
 
Registered: Jun 2005
Location: India
Posts: 101

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by danboland View Post
just set up bind9 and add an entry for those domains like you would any other. Never done this before but i would do something like this (no idea if it work though)

Code:
@       IN      SOA     hostname.domain.com. domains.domain.com. (
                        1181707685
                        10800
                        3600
                        604800
                        38400 )
cms.eri.blr.in.  IN      A        192.168.0.10
km.eri.blr.in.  IN      A        192.168.0.11
pms.eri.blr.in.  IN      A        192.168.0.12
ess.eri.blr.in.  IN      A        192.168.0.13

But this might not be the exact way to do it. you should consult the bind man pages.


Dan
Thank you for your reply.

I just want to know what is hostname.domain.com. domains.domain.com. Should i enter as it is.

Further, if user want to access Internet, then where and how to configure.

regards,

T. Saravana.
 
Old 10-20-2008, 02:22 AM   #6
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
Quote:
Originally Posted by tsaravan View Post
Thank you for your reply.

I just want to know what is hostname.domain.com. domains.domain.com. Should i enter as it is.

Further, if user want to access Internet, then where and how to configure.

regards,

T. Saravana.
hostname.domain.com = the fully-qualified name of your primary DNS server. It should be something like "ns1.eri.blr.in.".

domains.domain.com = domains@domain.com--this is the e-mail address of the DNS admin. It should be something like "hostmaster.eri.blr.in.".
 
Old 10-20-2008, 03:16 AM   #7
tsaravan
Member
 
Registered: Jun 2005
Location: India
Posts: 101

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by chort View Post
hostname.domain.com = the fully-qualified name of your primary DNS server. It should be something like "ns1.eri.blr.in.".

domains.domain.com = domains@domain.com--this is the e-mail address of the DNS admin. It should be something like "hostmaster.eri.blr.in.".
Thank you for your reply.

Further, i want to know how to configure named and refer the above said file by creating zone. This i was trying but not able to understand.

regards,

T. Saravana.
 
Old 10-20-2008, 03:21 AM   #8
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 need to do some basic reading. Start here http://www.isc.org/index.pl
 
Old 10-21-2008, 01:50 AM   #9
danboland
Member
 
Registered: Feb 2006
Location: NJ, USA
Distribution: Debian
Posts: 72

Rep: Reputation: 17
Also, i may be wrong here, but if you just add the entries above to a /etc/host file on one server and then set that server as the primary DNS for all the others it might also do the trick.

Not sure if this will work 100% or if there might be another step to it as i have never done this.



Dan
 
Old 10-21-2008, 08:54 AM   #10
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
Quote:
Originally Posted by danboland View Post
Also, i may be wrong here, but if you just add the entries above to a /etc/host file on one server and then set that server as the primary DNS for all the others it might also do the trick.

Not sure if this will work 100% or if there might be another step to it as i have never done this.



Dan
No, it won't. Why would you bother to post about something you have no experience with?
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
help needed to setup a DNS server can anyone say how to configure a DNS server subha Linux - Networking 4 04-27-2012 11:50 PM
DNS Setup Yomaoni Linux - General 7 03-18-2008 12:54 PM
DNS setup help tsaravan Linux - Networking 1 11-12-2007 02:10 AM
DNS setup. wr3kt Linux - Networking 0 04-29-2004 05:59 PM
DNS how to setup? wilcoNL Linux - Newbie 2 03-28-2004 06:25 AM

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

All times are GMT -5. The time now is 05:37 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