LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 12-01-2011, 02:38 PM   #1
agriz
Member
 
Registered: Nov 2011
Posts: 197

Rep: Reputation: Disabled
Nameserver or A Entry


Hi

Add an A Entry for Your Hostname
ns1.server.com some ip
ns2.server.com some ip

How do i do this without cpanel or whm?

Thanks
 
Old 12-01-2011, 02:43 PM   #2
agriz
Member
 
Registered: Nov 2011
Posts: 197

Original Poster
Rep: Reputation: Disabled
vi /etc/hosts

Quote:
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
someip ns1.server.com ns1
anotherip ns2.server.com ns2

::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
Is that correct?
 
Old 12-01-2011, 04:31 PM   #3
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
Originally Posted by agriz View Post
vi /etc/hosts



Is that correct?
This will work only for the host you've edited /etc/hosts. If you want ns1.server.com and ns2.server.com to be accessible by any host, you need to add A records for them in your domain zone file.

Regards
 
Old 12-01-2011, 04:33 PM   #4
agriz
Member
 
Registered: Nov 2011
Posts: 197

Original Poster
Rep: Reputation: Disabled
Is it named.conf?
Should i install Bind for this?

Do i need to create every file manually for this? Or is there any app for this?
 
Old 12-01-2011, 04:54 PM   #5
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
Is it named.conf?
Should i install Bind for this?
If your box is the authoritative nameserver for the domain server.com, then yes.
You need to install bind, edit named.conf to add the definition for the server.com zone and create the zone file for the server.com domain
It's the zone file where you add the NS, A, MX and any others records needed.


Quote:
Do i need to create every file manually for this? Or is there any app for this?
If you don't want to do it by hand, there are some tools that will help you on dns management, like webmin

Regards
 
Old 12-02-2011, 01:19 AM   #6
agriz
Member
 
Registered: Nov 2011
Posts: 197

Original Poster
Rep: Reputation: Disabled
Thanks for the info.
I will check webmin.

I have no idea how to create those files.
 
Old 12-02-2011, 01:55 AM   #7
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
I have no idea how to create those files.
Come on. There are tons of howtos about configuring dns.
Find one for your distro and you'll be fine.

Regards
 
Old 12-02-2011, 02:52 AM   #8
agriz
Member
 
Registered: Nov 2011
Posts: 197

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by bathory View Post
Come on. There are tons of howtos about configuring dns.
Find one for your distro and you'll be fine.

Regards
Thanks for the advice. I will try to find one for centos 6
I will update here.
 
Old 12-02-2011, 03:54 AM   #9
agriz
Member
 
Registered: Nov 2011
Posts: 197

Original Poster
Rep: Reputation: Disabled
Quote:
# 172.16.0.80/29
# network address⇒ 172.16.0.80
# range of network⇒ 172.16.0.80 - 172.16.0.87
# how to write⇒ 80.0.16.172.in-addr.arpa
How did the range work here?
I have got similar IP range from my hosting.

http://www.server-world.info/en/note?os=CentOS_6&p=dns
I am using this tutorial.

Quote:
Private IP address [10.0.0.0/24]
I didn't get something like this. What to do?
 
Old 12-02-2011, 04:29 AM   #10
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
How did the range work here?
I have got similar IP range from my hosting.
What do you mean? Post your IP range (or subnet), eventually masking the first 2 octets.
Or have a look here about subnetting

Regards
 
Old 12-02-2011, 05:21 AM   #11
agriz
Member
 
Registered: Nov 2011
Posts: 197

Original Poster
Rep: Reputation: Disabled
173.44.135.160/29
 
Old 12-02-2011, 06:07 AM   #12
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
For this subnet, the zone name is 160/29.135.44.173.in-addr.arpa.
But you should first contact your ISP to see:
1. if he gives you that subnet reverse dns administration (Classless in-addr.arpa delegation)
2. verify the above zone name
 
Old 12-02-2011, 06:10 AM   #13
agriz
Member
 
Registered: Nov 2011
Posts: 197

Original Poster
Rep: Reputation: Disabled
It is dedicated server. Should i ask the service provider?
If it is from web hosting, They should support it. shouldn't they?
 
Old 12-02-2011, 06:58 AM   #14
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
You should ask whoever sold you that subnet.
If it's a hosting company, I guess they should do this for you.
 
Old 12-02-2011, 05:36 PM   #15
agriz
Member
 
Registered: Nov 2011
Posts: 197

Original Poster
Rep: Reputation: Disabled
Can you point any chroot bind with master and slave settings?
I am trying in internet for centos 6. I didn't find it for centos 6
 
  


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
DNS Server: What to put for nameserver entry and more... Swakoo Linux - Networking 7 01-13-2006 01:35 PM
why does nameserver entry make browsing so quick? dcdbutler Linux - Wireless Networking 4 05-02-2005 07:28 AM

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

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