setting up an internal TLD

Mike Taylor miketaylor at operamail.com
Wed Oct 18 02:57:52 PDT 2006


Hello,

I've installed 3.9 on a system connected to a cable modem to act as a firewall.  I'm trying to make a TLD for my internal network.  The domain I'm trying to use is "localnet.dot".

Below are the files I'm using, but the system keeps using the ISP's DNS servers.  Here's the output I get when I use dig:

# dig @homebox www.yahoo.com
; <<>> DiG 9.3.1 <<>> @homebox www.yahoo.com
; (1 server found)
;; global options:  printcmd
;; connection timed out; no servers could be reached


What am I doing wrong?


thanks,
Mike


-----------------------------------------------------------------


/etc/dhclient.conf
----------------
(added to supplied dhclient.conf)

supersede host-name "homebox";
supersede domain-name "localnet.dot";
prepend domain-name-servers 10.10.10.10;


/etc/hosts
-----------
::1 localhost.localnet.dot localhost
127.0.0.1 localhost.localnet.dot localhost
10.10.10.10 homebox.localnet.dot homebox


/etc/myname
---------------
homebox.localnet.dot


/etc/resolv.conf
------------------
search localnet.dot
nameserver 10.10.10.10
nameserver <ISP server>
nameserver <ISP server>
lookup file bind


/etc/pf.conf
--------------
ext_if="dc0"
int_if="fxp0"

scrub in

nat-anchor "ftp-proxy/*"
rdr-anchor "ftp-proxy/*"
nat on $ext_if from !($ext_if) -> ($ext_if:0)
rdr pass on $int_if proto tcp to port ftp -> 127.0.0.1 port 8021

anchor "ftp-proxy/*"
block in
pass out keep state

pass quick on $int_if
antispoof quick for { lo $int_if }




/var/named/etc/named.conf
--------------------------------
(added to supplied named.conf)

zone "localnet.dot" {
        type master;
        file "master/localnet.dot";
};

zone "10.10.10.IN-ADDR.ARPA" {
        type master;
        file "master/10.10.10";
        allow-transfer { localhost; };
};






/var/named/master/10.10.10
--------------------------------
$TTL 86400
@       SOA     homebox.localnet.dot. root.homebox.localnet.dot. ( 2 10800 3600 604800 600 )
        NS      homebox.localnet.dot.

1               PTR     homebox.localnet.dot.




/var/named/master/loclnet.dot
----------------------------------------
$TTL 86400
@       SOA     homebox root.homebox ( 2 10800 3600 604800 600 )
        NS      homebox

localhost               A       127.0.0.1
homebox                    A       10.10.10.10
                        MX      10 homebox


-- 
_______________________________________________
Surf the Web in a faster, safer and easier way:
Download Opera 9 at http://www.opera.com

Powered by Outblaze


More information about the Openbsd-newbies mailing list