Find the answer to your Linux question:
Results 1 to 6 of 6
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    How to use Linux DNS Server for windows machine


    Hi guys,
    My situation is like this:
    I'm using Windows XP
    I installed VMBox and a Virtual Machine which is an Ubuntu Server
    On Ubuntu Server, I installed Apache and Bind9. I also changed /etc/resolv.conf to use the DNS installed.

    Testing:
    On Ubuntu Server, I can ping 192.168.56.102(ubuntu server)
    On my windows XP, I can open web browser at ( h t t p:// )192.168.56.102

    But I can't use ( h t t p:// ) example.com (which was configured in Bind 9 to point to 192.168.56.102)

    Can someone help me please?

    Kind Regards,

  2. #2
    you need to set the dns server for your internet connection to be the ubuntu server's IP

  3. #3
    Yes I already set the dns server for my windows xp to point to 192.168.56.102 but when I used nslookup: it showed that it couldn't connect to that one so it used the secondary DNS Server

  4. $spacer_open
    $spacer_close
  5. #4
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    4,031
    Possible issues:
    1a) the bind daemon is listening only on localhost
    1b) the bind daemon restricts access
    2) the connection is blocked by either the windows or linux firewall

    You can check listening daemons with:
    Code:
    netstat -tunlp
    And/or look at the connections
    Code:
    First: tcpdump -i eth0 port 53
    
    Then: try another nslookup from the windows box
    You must always face the curtain with a bow.

  6. #5
    Dear the following snippet is what I obtained from netstat -tunlp
    . Can you please review and tell me what the problem is since I don't know what exactly I need to look for?

    Thanks so much,

    Active Internet connections (only servers)
    Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
    tcp 0 0 0.0.0.0:389 0.0.0.0:* LISTEN 708/slapd
    tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN 563/smbd
    tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 876/apache2
    tcp 0 0 10.1.1.6:53 0.0.0.0:* LISTEN 691/named
    tcp 0 0 192.168.56.102:53 0.0.0.0:* LISTEN 691/named
    tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 691/named
    tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1014/sshd
    tcp 0 0 192.168.56.102:631 0.0.0.0:* LISTEN 846/cupsd
    tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 846/cupsd
    tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 795/master
    tcp 0 0 127.0.0.1:953 0.0.0.0:* LISTEN 691/named
    tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 876/apache2
    tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN 563/smbd
    tcp6 0 0 :::389 :::* LISTEN 708/slapd
    tcp6 0 0 :::53 :::* LISTEN 691/named
    tcp6 0 0 :::22 :::* LISTEN 1014/sshd
    tcp6 0 0 ::1:631 :::* LISTEN 846/cupsd
    tcp6 0 0 ::1:953 :::* LISTEN 691/named
    udp 0 0 192.168.56.102:137 0.0.0.0:* 1048/nmbd
    udp 0 0 10.1.1.6:137 0.0.0.0:* 1048/nmbd
    udp 0 0 0.0.0.0:137 0.0.0.0:* 1048/nmbd
    udp 0 0 192.168.56.102:138 0.0.0.0:* 1048/nmbd
    udp 0 0 10.1.1.6:138 0.0.0.0:* 1048/nmbd
    udp 0 0 0.0.0.0:138 0.0.0.0:* 1048/nmbd
    udp 0 0 10.1.1.6:53 0.0.0.0:* 691/named
    udp 0 0 192.168.56.102:53 0.0.0.0:* 691/named
    udp 0 0 127.0.0.1:53 0.0.0.0:* 691/named
    udp 0 0 0.0.0.0:68 0.0.0.0:* 976/dhclient3
    udp 0 0 0.0.0.0:33994 0.0.0.0:* 567/host
    udp 0 0 0.0.0.0:5353 0.0.0.0:* 603/avahi-daemon: r
    udp 0 0 0.0.0.0:38906 0.0.0.0:* 603/avahi-daemon: r
    udp6 0 0 :::53 :::* 691/named

  7. #6
    I know the reason.

    I have 2 internet connection: 1 is Virtual box , 1 is real Ethernet.

    I configured the DNS server for the real Ethernet card. That's why.

    I should have configured for the Virtual Box card.

    Thanks,

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •