LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

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

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


hi

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.

/etc/network/interfaces

auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.0.1
netmask 255.255.255.0
gateway 192.168.0.1

/etc/dhcp3/dhcpd.conf

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

/etc/bind/named.conf.local

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

zone "0.168.192.in-addr.arpa" {
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 127.0.0.1 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 09:06 AM.
 
Old 06-21-2008, 02:04 AM   #2
billymayday
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, 03:24 AM   #3
Morrighan
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?

tnx.

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

/etc/hosts

127.0.0.1 MICHIEL.mydomain.example mydomain.example MICHIEL
127.0.1.1 MICHIEL.mydomain.example

192.168.0.1 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, 03:55 AM   #4
Morrighan
LQ Newbie
 
Registered: Jun 2008
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
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 192.168.0.1
[sudo] password for michiel:

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

;; QUESTION SECTION:
;1.0.168.192.in-addr.arpa. IN PTR

;; AUTHORITY SECTION:
168.192.in-addr.arpa. 10493 IN SOA prisoner.iana.org. hostmaster.root-servers.org. 1 1800 900 604800 604800

;; Query time: 21 msec
;; SERVER: 10.0.3.3#53(10.0.3.3)
;; WHEN: Sun Jun 22 10:48:07 2008
;; MSG SIZE rcvd: 119
 
Old 09-30-2013, 05:04 PM   #5
martinezjr
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:
Code:
$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	192.168.29.10
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.
 
  


Reply


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


All times are GMT -5. The time now is 01:24 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration