Networking Forums

Networking Forums > Computer Networking > Linux Networking > Cannot resolve DNS from the windows

Reply
Thread Tools Display Modes

Cannot resolve DNS from the windows

 
 
wahid
Guest
Posts: n/a

 
      11-09-2005, 01:23 PM
Hi Guys,

I have configured LAN DNS with Red Hat 9.0. Everything seems ok with
the Linux box and I am able to ping the DNS and able to browse with the
DNS in the Linux box itself but none of this is working from windows. I
can only ping with the IP address...but not with the DNS. Ipconfig
shows all the entries properly. I need to resolve the DNS so that I can
connect all my LAN windows pcs with the LAN DNS done in Linux.

I will appreciate if anyone among you can help me to sort out this
problem. I am pasting all configuration files below:

********************dhcpd.conf START***********************************
ddns-update-style interim;
subnet 192.168.0.0 netmask 255.255.255.0 {
range dynamic-bootp 192.168.0.50 192.168.0.225;
default-lease-time 86400;
max-lease-time 86400;
option routers 192.168.0.1;
option ip-forwarding off;
option broadcast-address 192.168.0.255;
option subnet-mask 255.255.255.0;
option domain-name-servers 192.168.0.1;
option domain-name "crystalgallery.co.ae";
option nntp-server 192.168.0.1;
option netbios-name-servers 192.168.0.1;
}
********************dhcpd.conf END***********************************

********************named.conf START***********************************
options {
directory "/var/named";
};

acl "mylan" {
127/8; 192.168.0.0/8;
};

view "inside" {
match-clients { "mylan"; };
recursion yes;

zone "." IN {
type hint;
file "named.ca";
};

zone "0.168.192.in-addr.arpa" IN {
type master;
file "yourlan.db";
};

zone "crystalgallery.co.ae" {
type master;
file "db.crystalgallery.co.ae.inside";
allow-transfer { 192.168.0.2; };
};

};

include "/etc/rndc.key";
********************named.conf END***********************************

********************db.crystalgallery.co.ae.inside
START***********************************
$TTL 86400
@ IN SOA crystalgallery.co.ae. www.crystalgallery.co.ae. (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum

IN NS www.crystalgallery.co.ae.
IN MX 10 mail.crystalgallery.co.ae.

www IN A 192.168.0.1
********************db.crystalgallery.co.ae.inside
END***********************************

********************yourlan.db START***********************************
$TTL 86400
@ IN SOA crystalgallery.co.ae. www.crystalgallery.co.ae.
(
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS www.crystalgallery.co.ae.
1 IN PTR crystalgallery.co.ae.
********************yourlan.db END***********************************

********************resolv.conf
START***********************************
search crystalgallery.co.ae
nameserver 192.168.0.1
********************resolv.conf END***********************************

********************resolv.conf
START***********************************
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
192.168.0.1 www.crystalgallery.co.ae www
********************hosts END***********************************

Regards,
Wahid

 
Reply With Quote
 
 
 
 
Baho Utot
Guest
Posts: n/a

 
      11-09-2005, 10:00 PM
On Wed, 09 Nov 2005 06:23:02 -0800, wahid shouted Hoy......

> Hi Guys,
>
> I have configured LAN DNS with Red Hat 9.0. Everything seems ok with
> the Linux box and I am able to ping the DNS and able to browse with the
> DNS in the Linux box itself but none of this is working from windows. I
> can only ping with the IP address...but not with the DNS. Ipconfig
> shows all the entries properly. I need to resolve the DNS so that I can
> connect all my LAN windows pcs with the LAN DNS done in Linux.
>
> I will appreciate if anyone among you can help me to sort out this
> problem. I am pasting all configuration files below:
>
> ********************dhcpd.conf START***********************************
> ddns-update-style interim;
> subnet 192.168.0.0 netmask 255.255.255.0 {
> range dynamic-bootp 192.168.0.50 192.168.0.225;
> default-lease-time 86400;
> max-lease-time 86400;
> option routers 192.168.0.1;
> option ip-forwarding off;
> option broadcast-address 192.168.0.255;
> option subnet-mask 255.255.255.0;
> option domain-name-servers 192.168.0.1;
> option domain-name "crystalgallery.co.ae";
> option nntp-server 192.168.0.1;
> option netbios-name-servers 192.168.0.1;
> }
> ********************dhcpd.conf END***********************************
>
> ********************named.conf START***********************************
> options {
> directory "/var/named";
> };
>
> acl "mylan" {
> 127/8; 192.168.0.0/8;
> };
>
> view "inside" {
> match-clients { "mylan"; };
> recursion yes;
>
> zone "." IN {
> type hint;
> file "named.ca";
> };
>
> zone "0.168.192.in-addr.arpa" IN {
> type master;
> file "yourlan.db";
> };
>
> zone "crystalgallery.co.ae" {
> type master;
> file "db.crystalgallery.co.ae.inside";
> allow-transfer { 192.168.0.2; };
> };
>
> };
>
> include "/etc/rndc.key";
> ********************named.conf END***********************************
>


If it were me I wouldn't use that named.conf
Assumes Bind 9.3.0

Try like this

options {
directory "/etc/namedb";
pid-file "/var/run/named.pid";
statistics-file "/var/run/named.stats";
allow-transfer { none; };
};
controls {
#
};

zone "." {
type hint;
file "root.hints";
};

zone "0.0.127.in-addr.arpa" {
type master;
file "db.127.0.0";
};

zone "crystalgallery.co.ae" {
type master;
notify no;
file "db.crystalgallery.co.ae";
allow-query { any; };
allow-update { none; };
};

zone "15.168.192.in-addr.arpa" {
type master;
notify no;
file "db.192.168.15";
allow-query { any; };
allow-update { none; };
};


> ********************db.crystalgallery.co.ae.inside
> START***********************************
> $TTL 86400
> @ IN SOA crystalgallery.co.ae. www.crystalgallery.co.ae. (


Is www your email address?
That should be the admin email address

> 42 ; serial (d. adams)
> 3H ; refresh
> 15M ; retry
> 1W ; expiry
> 1D ) ; minimum
>
> IN NS www.crystalgallery.co.ae.
> IN MX 10 mail.crystalgallery.co.ae.
>


localhost IN A 127.0.0.1

> www IN A 192.168.0.1


mail IN CNAME www.crystalgallery.co.ae.

> ********************db.crystalgallery.co.ae.inside
> END***********************************
>
> ********************yourlan.db START***********************************
> $TTL 86400
> @ IN SOA crystalgallery.co.ae. www.crystalgallery.co.ae.
> (


see above

> 1997022700 ; Serial
> 28800 ; Refresh
> 14400 ; Retry
> 3600000 ; Expire
> 86400 ) ; Minimum
> IN NS www.crystalgallery.co.ae.
> 1 IN PTR crystalgallery.co.ae.


should be
1 IN PTR www.crystalgallery.co.ae.

> ********************yourlan.db END***********************************
>
> ********************resolv.conf
> START***********************************
> search crystalgallery.co.ae
> nameserver 192.168.0.1
> ********************resolv.conf END***********************************
>


Try this for resolv.conf on the DNS boxen

domain crystalgallery.co.ae
nameserver 127.0.0.1

On the client try just

nameserver 192.168.15.02


> ********************resolv.conf
> START***********************************
> # Do not remove the following line, or various programs
> # that require network functionality will fail.
> 127.0.0.1 localhost.localdomain localhost
> 192.168.0.1 www.crystalgallery.co.ae www
> ********************hosts END***********************************


For your /etc/hosts
127.0.0.1 localhost
192.168.0.1 www www.crystalgallery.co.ae

>
> Regards,
> Wahid


No problem

--
Tayo'y Mga Pinoy

 
Reply With Quote
 
Michael Heiming
Guest
Posts: n/a

 
      11-10-2005, 05:01 AM
In comp.os.linux.networking wahid <(E-Mail Removed)>:
> Hi Guys,


> I have configured LAN DNS with Red Hat 9.0. Everything seems ok with
> the Linux box and I am able to ping the DNS and able to browse with the
> DNS in the Linux box itself but none of this is working from windows. I
> can only ping with the IP address...but not with the DNS. Ipconfig


Random guess, you have fire-walling enabled on the RH box, which
is btw EOL. Try firing up 'lokkit' from some xterm and disable
it.

[..]

--
Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
mail: echo (E-Mail Removed) | perl -pe 'y/a-z/n-za-m/'
#bofh excuse 436: Daemon escaped from pentagram
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't resolve Domain Names outside of Windows Domain MTUser2007 Wireless Networks 1 01-26-2008 02:15 PM
IE 6 cannot resolve DNS attomsriver@yahoo.com Windows Networking 1 12-22-2006 01:57 AM
Resolve DNS DerekP Wireless Networks 0 04-11-2006 08:56 PM
can't resolve DNS lou Broadband Hardware 2 10-18-2004 03:44 AM
Windows 98 won't resolve DNS names Grant Home Networking 2 04-15-2004 05:14 PM



1 2 3 4 5 6 7 8 9 10 11