Results 1 to 8 of 8

Thread: how to reach to a local domain hosted by BIND from android

  1. #1

    Lightbulb how to reach to a local domain hosted by BIND from android

    I installed CentOS 6.5 in virtual machine on Window 7.
    in addition, i have an Android device(Samsog galaxy s2+)
    all these three machines connected to a Wifi network via a linksys WAG54G2 access point. they all can see(ping) each other.

    I also have a local domain hosted by BIND dns server that configured correctly.

    my goal is that the Android device could connect to the domain name but I can't connect to the local domain from the android device. I think it is a DNS issue or an android bug.
    I googled a lot.
    I used SetDNS and a few other similar apps to set local DNS Server for my android device.also i rooted the android device and played a lot with that(hosts file, resolv.conf ...) but i still can't resolve(nslookup,ping,dig,host) the local domain.

    I really need your help , guys.
    thanks.

  2. #2
    Newbie
    Join Date
    Jul 2014
    Location
    Oklahoma City
    Posts
    5
    Could it be a firewall issue from the Android device? Any way to telnet to the DNS server on port 53 and see if it connects?


    JS
    www.1to1riskcontrol.com

  3. #3
    thanks piinokc,
    I can connect to DNS server port[192.168.1.106:53] from the Android device.
    the firewall is stopped.
    any other idea?

  4. #4
    Newbie
    Join Date
    Jul 2014
    Location
    Oklahoma City
    Posts
    5
    Do you have a domain that you created on the DNS server? For example, create a zone for test.com pointing it to some IP address like 10.0.0.1. Now do a nslookup from the Android device: nslookup test.com 192.168.1.106
    Does it get a reply?

  5. #5
    Quote Originally Posted by piinokc View Post
    Do you have a domain that you created on the DNS server? For example, create a zone for test.com pointing it to some IP address like 10.0.0.1. Now do a nslookup from the Android device: nslookup test.com 192.168.1.106
    Does it get a reply?
    I created a domain on the BIND and it works fine.
    but ,as i told before, i can't reach(ping or nslookup) it from my android device

    also, i can telenet to 192.168.1.106(the Android device):53(BIND port)

  6. #6
    result of PINGing my local domain on CentOS host(192.168.1.106):
    # ping test.com
    PING test.con(192.168.1.106) 56(84) bytes of data.
    64 bytes from 192.168.1.106: icmp_seq=1 ttl=64 time=0.044 ms
    64 bytes from 192.168.1.106: icmp_seq=2 ttl=64 time=0.060 ms
    64 bytes from 192.168.1.106: icmp_seq=3 ttl=64 time=0.052 ms
    BIND installed on the CentOS host.

    result for naslookup command on my windows 7 host(192.168.1.101):
    # nslookup test.com 192.168.1.106
    Server: UnKnown
    Address: 192.168.1.106

    *** UnKnown can't find test.com: Query refused

  7. #7
    Newbie
    Join Date
    Jul 2014
    Location
    Oklahoma City
    Posts
    5
    Check your /etc/named.conf file and try changing the following lines from 'localhost' to 'any':
    listen-on port 53 { any; };
    allow-query { any; };

  8. #8
    Newbie
    Join Date
    Jul 2014
    Location
    Oklahoma City
    Posts
    5
    You could also specify the IP range or ranges you want to lock it down to as well to be more secure.

Similar Threads

  1. forwarding non-existent user to remote hosted domain of same domain name?
    By pushpraj nimbalkar in forum Redhat / Fedora
    Replies: 3
    Last Post: 07-18-2006, 09:50 PM
  2. Reach a Server on LAN with ISP Assigned IP
    By omnivore in forum Linux - General Topics
    Replies: 3
    Last Post: 02-12-2005, 06:24 PM
  3. GetLinuxOnline hosted Linux Games?
    By SkyNet in forum Linux - Software, Applications & Programming
    Replies: 6
    Last Post: 07-31-2004, 01:32 AM
  4. Open Reach VPN?
    By datamike in forum Linux - General Topics
    Replies: 0
    Last Post: 01-24-2002, 12:58 PM
  5. This topic will never reach ten replies
    By in forum General Chat
    Replies: 28
    Last Post: 01-21-2002, 03:20 PM

Bookmarks

Posting Permissions

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