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 09-24-2008, 01:22 PM   #1
yah0m
Member
 
Registered: Jul 2008
Posts: 38

Rep: Reputation: 15
BIND/DNS setup working(kinda)


I've got a few domains and I setup BIND for my own nameservers, the only problem is, I can't seem to get virtual hosts on another IP to work.

I can ping DOMAIN2 and I get the IP *.*.68.70 but no website loads.

I've got 5 IPs on hand so I can switch things up if need be.

My Setup:

/etc/named.conf
Code:
options {
        directory    "/var/named";
        query-source port 53;

allow-transfer {
        localhost;};
};
zone "DOMAIN1.org" {
        type master;
        file "DOMINA1.org.db";
};
zone "DOMAIN2.com" {
        type master;
        file "DOMINA2.com.db";
};
zone "localhost" {
        type master;
        file "localhost.db";
};
zone "0.0.127.in-addr.arpa" {
        type master;
        file "127.0.0.rev";
};
zone "." in {
        type hint;
        file "root.db";
};
/var/named/DOMAIN1.org.db
Code:
$ORIGIN DOMAIN1.org.
$TTL 3h
@        IN SOA ns1.DOMAIN1.org. host.DOMAIN1.org. (
                       2008092301        ; Serial yyyymmddnn
                       3h                ; Refresh After 3 hours
                       1h                ; Retry Retry after 1 hour
                       1w                ; Expire after 1 week
                       1h)             ; Minimum negative caching of 1 hour

@                      300    IN NS    ns1.DOMAIN1.org.
@                      300    IN NS    ns2.DOMAIN1.org.

@                     300     IN MX 10 smtp.DOMAIN1.org.

ns1                    300    IN A     *.*.68.69
ns2                    300    IN A     *.*.68.69

@                      300    IN A     *.*.68.69
www                    300    IN A     *.*.68.69
ftp                    300    IN A     *.*.68.69
/var/named/DOMAIN2.org.db
Code:
$TTL 3h
$ORIGIN DOMAIN2.com.
@        IN      SOA    ns1.DOMAIN1.org. host.DOMAIN1.org. (
                       2008092401        ; Serial yyyymmddnn
                       3h                ; Refresh After 3 hours
                       1h                ; Retry Retry after 1 hour
                       1w                ; Expire after 1 week
                       1h)               ; Minimum negative caching of 1 hour


@        IN     NS      ns1.DOMAIN1.org.
@        IN     NS      ns2.DOMAIN1.org.


@        IN     A       *.*.68.70
ns1      IN     A       *.*.68.69
ns2      IN     A       *.*.68.69
www      IN     A       *.*.68.70
ftp      IN     A       *.*.68.70

Last edited by yah0m; 09-24-2008 at 01:31 PM.
 
Old 09-25-2008, 05:47 AM   #2
0.o
Member
 
Registered: May 2004
Location: Raleigh, NC
Distribution: Debian, Solaris, HP-UX, AIX
Posts: 208

Rep: Reputation: 35
If you get the correct IP address when pinging, are you sure it isn't your apache config?
 
Old 09-25-2008, 09:30 AM   #3
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
PHP Code:
        query-source port 53
Unrelated to your virtual host issue, but remove this from your config. It makes you vulnerable to cache poisoning, regardless of whether your patches are up to date.
 
  


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 do I setup a Bind DNS Server Wynand1 Linux - Networking 1 05-29-2006 03:44 PM
DNS-BIND setup nueunix Linux - Networking 1 05-12-2004 05:27 PM
BIND DNS Setup on new server brooky Linux - General 0 04-03-2004 09:54 AM
need help to setup dns server with bind 9.1.0 joseph Linux - General 7 09-01-2003 01:11 AM
DNS working....kinda diveguy Linux - Networking 0 02-27-2002 09:04 AM

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

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