Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-20-2008, 10:04 AM   #1
LQ Newbie
Registered: Jun 2008
Posts: 8

Rep: Reputation: 0
building a virtual network - trouble with bind


im trying to build a virtual network with VirtualBox. Im using Ubuntu 8.04 which i hope becomes the server.

can someone tell me what i am doing wrong.


auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static


default-lease-time 600;
max-lease-time 7200;


zone "mydomain.example" {
type master;
file "etc/bind/db.mydomain.example";

zone "" {
type master;
notify no;
file "/etc/bind/db.192";

i editted some other files as well but since i dont know where the error is i dont know which to post.

i got as far as pinging my domain.

but after i tried dig -x it said it couldnt find a server

plz tell me what info you need to help me

Last edited by Morrighan; 06-20-2008 at 10:06 AM.
Old 06-21-2008, 03:04 AM   #2
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Well you don't have a localhost zone or reverse localhost zone...

What happens if you dig -x int the 192 range?
Old 06-22-2008, 04:24 AM   #3
LQ Newbie
Registered: Jun 2008
Posts: 8

Original Poster
Rep: Reputation: 0
i got it to work, more or less. but now there is another problem.when i ping my domain i get the loopbackadres as is IP.

i think there is a flaw in my hosts file

can someone have a look?


michiel@MICHIEL:~$ ping mydomain.example
PING MICHIEL.mydomain.example ( 56(84) bytes of data.
64 bytes from MICHIEL.mydomain.example ( icmp_seq=1 ttl=64 time=0.082 ms

/etc/hosts MICHIEL.mydomain.example mydomain.example MICHIEL MICHIEL.mydomain.example MICHIEL.mydomain.example mydomain.example

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
Old 06-22-2008, 04:55 AM   #4
LQ Newbie
Registered: Jun 2008
Posts: 8

Original Poster
Rep: Reputation: 0
Originally Posted by billymayday View Post
Well you don't have a localhost zone or reverse localhost zone...

What happens if you dig -x int the 192 range?
michiel@MICHIEL:~$ sudo dig -x
[sudo] password for michiel:

; <<>> DiG 9.4.2 <<>> -x
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 50296
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0


;; AUTHORITY SECTION: 10493 IN SOA 1 1800 900 604800 604800

;; Query time: 21 msec
;; WHEN: Sun Jun 22 10:48:07 2008
;; MSG SIZE rcvd: 119
Old 09-30-2013, 06:04 PM   #5
LQ Newbie
Registered: Aug 2008
Location: Texas
Distribution: F14, F15, F19, openSUSe12.2,openSUSe12.3
Posts: 16

Rep: Reputation: 0
What are the configs?

Can you post your forward and reverse zone configs? They should look something like:
$TTL 1d
$ORIGIN linux.joseph.
@	1D	IN 	SOA	joseph-svr.linux.joseph.    admin.linux.joseph. (
	2013060403	; serial
	86400		; refresh
	600		; retry
	604800		; expiry
	90000 		; minimum
	IN 	NS	joseph-svr.linux.joseph.

joseph-svr.linux.joseph.	IN 	A
I am also not sure as I user openSUSE for my DNS Server, but the conf files should go into /var/lib/named/master directory. Do not use ".example" as a domain, use ".local" or ".name" as your tld. And your host file (/etc/host) should have the loopback in it.

Also, something to consider is that you may need to put your NICs into permissive mode, i.e. something that only root can do. Which means that you have to start VirtualBox with root.


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 trouble bbioman85 Linux - Server 1 07-27-2007 05:27 PM
BIND with Apache Virtual Hosts maxsanders Linux - Server 2 06-01-2007 09:07 AM
LXer: Building A Virtual Cluster with Xen LXer Syndicated Linux News 0 07-25-2006 12:12 AM
Trouble building kxdocker 0.20 mauripop Linux - Software 2 04-20-2005 02:59 PM
trouble setting up BIND noisybastard Linux - Networking 1 05-15-2003 07:36 AM

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