LinuxQuestions.org
Help answer threads with 0 replies.
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 05-07-2009, 10:05 AM   #1
dsylvester
LQ Newbie
 
Registered: Jan 2003
Posts: 13

Rep: Reputation: 0
Bind and dns


I have bind/dns working correctly. The only thing I am having problems with is creating a A record to point the domain at a IP Address for a website.

For example.

Zone file for ABC.com

www A 10.10.10.10


so that resolves www.abc.com to 10.10.10.10.

What I want to do is resolve

abc.com to 10.10.10.10
 
Old 05-07-2009, 10:14 AM   #2
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,979
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
Quote:
Originally Posted by dsylvester View Post
I have bind/dns working correctly. The only thing I am having problems with is creating a A record to point the domain at a IP Address for a website.

For example.

Zone file for ABC.com

www A 10.10.10.10


so that resolves www.abc.com to 10.10.10.10.

What I want to do is resolve

abc.com to 10.10.10.10
Post your zone file.
 
Old 05-07-2009, 11:29 AM   #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
How about:
Code:
abc.com. A 10.10.10.10
 
Old 05-07-2009, 11:53 AM   #4
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,979
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
Quote:
Originally Posted by bathory View Post
How about:
Code:
abc.com. A 10.10.10.10
Actually...it would be...
Code:
abc.com. IN A 10.10.10.10
But I won't be able to tell unless he posts his zone file...
 
Old 05-07-2009, 01:09 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
The class "IN" is not necessary, since it's the default. So both RRs
Quote:
abc.com. A 10.10.10.10
abc.com. IN A 10.10.10.10
do the same job.
 
Old 05-07-2009, 10:04 PM   #6
dsylvester
LQ Newbie
 
Registered: Jan 2003
Posts: 13

Original Poster
Rep: Reputation: 0
$ORIGIN abc.com.
$TTL 1D
@ IN SOA mail linux (
7 ; serial
8H ; refresh
4H ; retry
4W ; expire
1D ) ; minimum

NS dns.abc.com.
NS ns.abc.com.
MX 10 mail.abc.com.

localhost A 127.0.0.1



www A 10.10.10.10
 
Old 05-07-2009, 11:27 PM   #7
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,979
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
Quote:
Originally Posted by dsylvester View Post
$ORIGIN abc.com.
$TTL 1D
@ IN SOA mail linux (
7 ; serial
8H ; refresh
4H ; retry
4W ; expire
1D ) ; minimum

NS dns.abc.com.
NS ns.abc.com.
MX 10 mail.abc.com.

localhost A 127.0.0.1



www A 10.10.10.10
You need somthing like...

Code:
$ORIGIN abc.com.
$TTL 1D
@     IN SOA   mail  linux (
                        7         ; serial
                        8H        ; refresh
                        4H        ; retry
                        4W        ; expire
                        1D )      ; minimum

                NS              dns.abc.com.
                NS              ns.abc.com.
                MX      10      mail.abc.com.
                A            10.10.10.10

localhost       A               127.0.0.1



www             A               10.10.10.10
 
Old 05-08-2009, 12:13 AM   #8
dsylvester
LQ Newbie
 
Registered: Jan 2003
Posts: 13

Original Poster
Rep: Reputation: 0
That didn't work.

nslookup abc.com
Server: 10.10.10.11
Address: 10.10.10.11#53

*** Can't find abc.com: No answer


nslookup www.abc.com
Server: 10.10.10.11
Address: 10.10.10.11#53

Name: www.abc.com
Address: 10.10.10.10
 
Old 05-08-2009, 12:21 AM   #9
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
Did you increase the serial (number 7 in the 4th line of the zone file) and restarted bind after the changes?
Btw we don't see the A records for dns.abc.com and ns.abc.com

Last edited by bathory; 05-08-2009 at 12:22 AM.
 
Old 05-08-2009, 12:35 AM   #10
dsylvester
LQ Newbie
 
Registered: Jan 2003
Posts: 13

Original Poster
Rep: Reputation: 0
Yes increased the number and ran the following command:

rndc reload abc.com

The above was the result.
 
Old 05-08-2009, 12:44 AM   #11
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
Use either:
Code:
abc.com. A 10.10.10.10
or
Code:
@ A 10.10.10.10
 
Old 05-08-2009, 09:54 AM   #12
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,979
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
Quote:
Originally Posted by dsylvester View Post
Yes increased the number and ran the following command:

rndc reload abc.com

The above was the result.
bathory is right...the following should work.

Code:
@ A 10.10.10.10
or

Code:
abc.com. A 10.10.10.10
..will work to...but remember the trailing . or it won't work.
 
Old 05-08-2009, 03:50 PM   #13
dsylvester
LQ Newbie
 
Registered: Jan 2003
Posts: 13

Original Poster
Rep: Reputation: 0
Thanks custangro and bathory.

@ A 10.10.10.10


worked!!!!!

 
  


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
How to get Windows Clients to be served DNS from a Linux BIND-DNS Server texmansru47 Linux - Networking 12 07-10-2008 07:06 PM
Bind DNS WyRm Linux - Server 1 01-23-2007 06:14 AM
LXer: DNS: The Bind Leading the Bind LXer Syndicated Linux News 0 06-15-2006 10:33 PM
Dns (bind) njdownes Linux - Networking 3 02-28-2005 09:15 AM
dns/bind stanev Debian 1 12-14-2004 08:05 AM

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

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