Link to home
Start Free TrialLog in
Avatar of patriciaeldridge
patriciaeldridge

asked on

fake internal zone file in named problem

Well .. I'm using linux .. a friend is using windows .. I'm the admin of the gateway .. so I setup a fake zone in the bind nameserver like this ..

$TTL    1d
server.       IN      SOA     ns.server. root.server. (
                        2007083225      ; Serial
                        1H              ; Refresh
                        1H              ; Retry
                        2D              ; Expire
                        1D )            ; Minimum
@       IN      NS      ns.server.
ns      IN      A       10.3.0.77
@       IN      A       10.3.0.77
@       IN      A       10.3.0.88

this seems to work for me .. but doesn't work for him .. ( both of us have the same ns .. ) so .. anyone cna tell what's wrong ?
Avatar of Chris Dent
Chris Dent
Flag of United Kingdom of Great Britain and Northern Ireland image


In what respect isn't it working?

Failing to load? Failing to resolve?

Chris
Avatar of patriciaeldridge
patriciaeldridge

ASKER

failing to resolve ofcourse .. :) ..

Ok ..
I'm trying to create a fake "name" named "server" so that when someone tries to access http://server it'll get directed to what I want ..

I have let's say .. 10 boxes .. 5 running linux .. 5 running wintendo ! .. ( wind0ws .. ) ..
all of the computers get the same data from a dhcpd server except the ip ofcourse ( so all of them have the same gw .. same dns server .. same dhcp server .. same network ) ..

: - all the boxes can ping ns.server
- all the linux boxes can ping server
- none of the win boxes can ping server !
fact: running tcpdump on the gateway while the win boxes try to ping "server" doesn't even show up the domain lookup ! ..

here's what I have in named.conf :

zone "server" IN {
type master;
file "pri/fake.zone";
allow-update { none; };
notify no;
};




fake.zone file looks like this:

$TTL 1D
@ IN SOA ns.server. root.server. (
2007082301 ; Serial
28800 ; Refresh
14400 ; Retry
604800 ; Expire - 1 week
86400 ) ; Minimum
@ IN NS ns
ns IN A 10.1.0.254
@ IN A 10.3.0.77



C:\Documents and Settings\LAPTOP>nslookup "server."
*** Can't find server name for address 10.3.0.254: Non-existent domain
*** Default servers are not available
Server:  UnKnown
Address:  10.3.0.254

Name:    server
Address:  10.3.0.77


C:\Documents and Settings\LAPTOP>ping server
Ping request could not find host server. Please check the name and try again.

hope you guys understood what I'm trying to do .. so .. any help would be greatly appreciated ! .. thanks in advance ! ..
ASKER CERTIFIED SOLUTION
Avatar of patriciaeldridge
patriciaeldridge

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial

Hey,

If you've got it all fixed I recommend you request the question closed as self answered. You can pop a post into Community Support for that, linking to the question.

Chris
sure I'd do that if I'd knew how ! :)

Post on this area:

https://www.experts-exchange.com/Community_Support/General/

With a link to this question (https://www.experts-exchange.com/questions/22779956/fake-internal-zone-file-in-named-problem.html will do), stating that you'd like it closed as you found the answer yourself :)

Chris