Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

DNS looping in ubuntu 12.10 fix #418

Closed
lilmrjacob opened this Issue · 36 comments

3 participants

@lilmrjacob

sorry im a noob, ununtu 12.10 on macbook air (NO vm) using am3yrus tutorial everything went sweet as(NO ERRORS SETTING UP). untill i tryed to connect, ipad3 an iphone 4 connect. i get the dns looping from what i have found. an have NO clue on how to fix it. i did find this ( http://sokratisg.net/2012/03/31/ubuntu-precise-12-04-get-rid-of-nms-dnsmasq-and-setup-your-own/ ) looks like we mitght not need to install dnsmasq???? can some one help me pleas!!! an it looks like a few people having this prob. im just not seeing a fix ( thats just me i think lol) thanks all. ps had this all going on mac osx sweet as but osx filled up my little 60gb hdd so i had to go with ubuntu an 12.10 is the only iso that would boot on my mac via usb. try 8.10 an up

ANYWAY CAN SOMEONE PLEAS HELP THIS NOOB!

@lilmrjacob

ect/reslov.conf 8.8.8.8 works but the file resets on reboot is there a way to fix this?

@sturma
@lilmrjacob

sorry im a noob how do i find my dsl is that the ip of my modem ?
ps thank you so much to the quick reply !!!!!!!!

@sturma

if you're using a PC and you're on the same LAN with your siriproxy, check the DNS server on your PC (Network & Sharing Center or type 'ipconfig /all') and set the same in /etc/resolv.conf.

It depends how your modem works. In DHCP it may send you its own IP (DNS relay) or directly your provider's DNS.

@sturma

The idea is that you should be able to resolve guzzoni.apple.com from within your siriproxy to its real IP address.
If you get back your own IP, you're having this DNS loop.

So, if you ping guzzoni.apple.com from your TTLP server, you should get it resolved to an IP like 17.174.X.Y (although no ping reply is received).

@lilmrjacob

ok found the dls, did the uninstall, resolv.conf still resets on boot. i pad 3 (NO JB) looks like its now not going through the siri proxy. i phone 4 (JB) is still working fine and i have no idea how to ping guzzoni?
if i use 8.8.8.8. in the .conf file it all works if i use my dsl eg 10.1.1.234 the iphone works but it looks like ipad dose not?
just looking in to how to ping guzzoni now

@lilmrjacob

ok forgot to restart dnsmasq after reboot. so that stuffed everything lol forget all that up top ill get back to you soon. sorry mate and thanks

@sturma

on your iPad, did you change the DNS IP to your TTLP server IP?
Did you install the SSL certificate on your iPad?

To ping guzzoni from ubuntu, open a terminal window and type 'ping guzzoni.apple.com'. You should get back an IP like 17.174.... (but no ping reply; apple does not send back replies).
OR, you can type 'nslookup guzzoni.apple.com' to see the resolved IP.

@lilmrjacob

yes had ipad 3 and iphone 4 working all fine/ with 8.8.8.8 or my dsl eg 10.1.1.123 in the .conf file
ping guzzoni.apple.com
PING guzzoni.apple.com (10.1.1.5) 56(84) bytes of data.
64 bytes from Ubuntu-Mac.local (10.1.1.5): icmp_req=1 ttl=64 time=0.038 ms
64 bytes from Ubuntu-Mac.local (10.1.1.5): icmp_req=2 ttl=64 time=0.062 ms
64 bytes from Ubuntu-Mac.local (10.1.1.5): icmp_req=3 ttl=64 time=0.061 ms
and so on, with eg 10.1.1.5 in the /etc/resolv.conf
i get the 17.174 one with 8.8.8.8 in the /etc/resolv.conf
i get the 17.174 one and my isp dsn i guess eg 130.024.234 with my dsl eg 10.1.1.123 in the .conf

ipad 3 working afer ( apt-get --purge remove bind9 )
then ( service dnsmasq restart )
so now everything is working fine with my dsl eg 10.1.1.123 or 8.8.8.8 in the .conf
but the /etc/resolv.cont still resetting to 127.0.0.1 on reboot.
only get the loop with 127.0.0.1 or 10.1.1.5 in the conf.
dont know how to stop the reset an it resets to 127.0.0.1 witch loops
an thanks i now know how to ping

@nlsnell

sturma, could you help me please! i am having a similar issue, it keeps expiring when i set this up. Do you know if my ISP would block any of this? I only have the wireless router that brighthouse networks/road runner provided me.

@sturma

What do you mean by "expiring"? What is expiring?

@nlsnell
@sturma

Can you please post an output log from the terminal window?

@nlsnell
@nlsnell

this is what i get when i run ipconfig
Host Name . . . . . . . . . . . . : Main
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No

Ethernet adapter Local Area Connection 2:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : TAP-Win32 Adapter V8
Physical Address. . . . . . . . . : 00-FF-3F-6E-7B-73
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes

Wireless LAN adapter Wireless Network Connection:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Atheros AR5007EG Wireless Network Adapter

Physical Address. . . . . . . . . : 00-21-63-39-57-D1
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IPv4 Address. . . . . . . . . . . : 192.168.0.4(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Lease Obtained. . . . . . . . . . : Tuesday, May 07, 2013 11:58:32 PM
Lease Expires . . . . . . . . . . : Wednesday, May 08, 2013 11:44:00 PM
Default Gateway . . . . . . . . . : 192.168.0.1
DHCP Server . . . . . . . . . . . : 192.168.0.1
DNS Servers . . . . . . . . . . . : 65.32.5.111
65.32.5.112
NetBIOS over Tcpip. . . . . . . . : Enabled

Ethernet adapter Local Area Connection:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Realtek PCIe FE Family Controller
Physical Address. . . . . . . . . : 00-1E-33-5A-9D-2A
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes

Ethernet adapter VirtualBox Host-Only Network:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : VirtualBox Host-Only Ethernet Adapter
Physical Address. . . . . . . . . : 08-00-27-00-A4-EC
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::35ce:d4ad:7acf:bd83%17(Preferred)
IPv4 Address. . . . . . . . . . . : 192.168.56.1(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :
DHCPv6 IAID . . . . . . . . . . . : 285736999
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-14-5A-D1-4E-00-1E-33-5A-9D-2A

DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1
fec0:0:0:ffff::2%1
fec0:0:0:ffff::3%1
NetBIOS over Tcpip. . . . . . . . : Enabled

Tunnel adapter Local Area Connection* 9:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : isatap.{0C1020F2-C51C-4D15-A1FF-40F7A4806
8C8}
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes

Tunnel adapter Local Area Connection* 10:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : isatap.tampabay.rr.com
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes

Tunnel adapter Local Area Connection* 11:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Teredo Tunneling Pseudo-Interface
Physical Address. . . . . . . . . : 02-00-54-55-4E-01
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
IPv6 Address. . . . . . . . . . . : 2001:0:5ef5:79fd:1021:326f:3f57:fffb(Pref
erred)
Link-local IPv6 Address . . . . . : fe80::1021:326f:3f57:fffb%11(Preferred)
Default Gateway . . . . . . . . . : ::
NetBIOS over Tcpip. . . . . . . . : Disabled

Tunnel adapter Local Area Connection* 14:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft ISATAP Adapter #4
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes

Tunnel adapter Local Area Connection* 17:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : isatap.{437B9D04-3A39-426C-B722-27683F57E
612}
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes

Tunnel adapter Local Area Connection* 12:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : isatap.{342BD2E3-C62D-4A4C-B2C8-95C125AB8
8AB}
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes

@sturma

The TTLP server seems to run fine. What you see as "expiring past 24 hours keys" is normal, nothing to worry.
Please send also an 'ifconfig -a' output from Ubuntu (open a new terminal window).

  • Did you change the DNS server setting on your iPhone/iPad?
  • Did you downloaded/installed the SSL certificate on your iPhone/iPad?
@nlsnell
@nlsnell

I did change the DNS Server on iphone to 65.32.5.111 thats correct right?

@sturma

No, that's not correct. Your iPhone's DNS server should be your TTLP, i.e. 192.168.0.18, according to 'ifconfig' output.
65.32.5.111 is your public DNS server. That should be your DNS server on Ubuntu.
Can you please also share the output of 'ping guzzoni.apple.com' on Ubuntu?

@nlsnell
@sturma

ok, that looks good (resolved to real IP address of guzzoni).
Can you try sending a Siri command from your iPhone? What's the output on TTLP terminal?

@nlsnell

same thing

@nlsnell

settings on iphone are
ip address DHCP
IP Address 192.168.0.6
Subnet Mast 255.255.255.0
Router 192.168.0.1
DNS 192.168.0.18
Http Proxy off

@sturma

try the following from your PC (open a DOS/cmd window), to check if dnsmasq works fine:

nslookup - 192.168.0.18
'> guzzoni.apple.com

Send the output

@nlsnell
@sturma

ok, dnsmasq isn't working.
On ubuntu, send me the following output:

more /etc/resolv.conf

Did you add the following entry on /etc/dnsmasq.conf?

address=/guzzoni.apple.com/192.168.0.18

Try restarting also dnsmasq and test nslookup again:

sudo /etc/init.d/dnsmasq restart

@nlsnell
@nlsnell
@nlsnell
@nlsnell
@sturma

#edit the dnsmasq conf. Find the corresponding section (address=/....) and add your setting, or edit any existing one.

sudo nano /etc/dnsmasq.conf

#add/edit the following line, to point to your own IP address

address=/guzzoni.apple.com/192.168.0.18

#save the file and restart dnsmasq. If already running, do the following:

#Check if existing DNS process is running and kill it

sudo netstat -anlp | grep -w LISTEN

#Find at the right /dnsmasq
#kill the process

sudo kill <process number>

#Restart dnsmasq

sudo /etc/init.d/dnsmasq restart

Or, you can always restart Ubuntu after changing the dnsmasq.conf file.

@sturma

/etc/NetworkManager/NetworkManager.conf must have dns=dnsmasq commented, i.e.:

#dns=dnsmasq

So, what you have is correct.

@nlsnell

does the port 53 issue have something to do with my isp?

@sturma

No, it's your local DNSmasq server running on port 53

@lilmrjacob lilmrjacob closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.