Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 04-19-2005, 08:05 PM   #1
LQ Newbie
Registered: May 2004
Posts: 8

Rep: Reputation: 0
Configuring BIND to work with a domain name


I've setup BIND to work with my domain name but I'm having a small problem as it will only allow subdomains such as or to work but what I need is a way to assign my ip to just

My current config is:

@       IN      SOA (
                        8H      ; Refresh
                        2H      ; Retry
                        4W      ; Expire
                        1D )    ; Minimum TTL
        IN      NS      localhost.
        IN      NS
        IN      NS
        IN      MX      10 localhost.
        IN      MX      20
localhost       A
server          A
laptop          A
rachel          A
dev             A
wireless        A
ns1             A
ns2             A
www             CNAME   server
ftp             CNAME   server
mail            CNAME   server
imap            CNAME   server
irc             CNAME   server
I would be greatful for any help in this matter.

Old 04-19-2005, 08:17 PM   #2
Senior Member
Registered: Apr 2002
Location: Smithville, TN
Distribution: Slackware
Posts: 1,745

Rep: Reputation: 71
You can not assign a IP number to a domain name. The is the top level in the domain or the domain name.

In other words, if you had a single domain with no sub domains. The domain name is If you had a server named www, it's name is www and the domain name is

I hope I did not confuse you.
Old 04-19-2005, 08:31 PM   #3
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
Add the following line to your zone file. The @ sign is replaced with the zone name passed from named.conf when the zone file is parsed.
@     IN       A
-or- the same thing without the @ sugn:
Code:   IN     A
Old 04-19-2005, 08:34 PM   #4
Senior Member
Registered: Apr 2002
Location: Smithville, TN
Distribution: Slackware
Posts: 1,745

Rep: Reputation: 71
I didn't know that. Learn something new everyday.
Old 04-20-2005, 06:32 AM   #5
LQ Newbie
Registered: May 2004
Posts: 8

Original Poster
Rep: Reputation: 0
Thank you scowles that sorted my problem out and now I can get my email system back up.


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
Bind - Why won't my LAN domain work? jimieee Linux - Networking 1 05-09-2005 12:07 PM
Cant get entry in bind to work with instead of pxes351 Linux - Networking 12 05-09-2005 06:20 AM
Configuring DNS to Work with my domain jrbush82 Linux - Networking 1 04-19-2005 09:54 PM
DNS/BIND domain 'authority' tisource Linux - Software 7 07-15-2004 06:16 AM
Setting up a domain host with bind. fur Linux - Networking 2 04-08-2004 07:45 PM

All times are GMT -5. The time now is 12:08 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration