{"action":"created","issue":{"url":"https://api.github.com/repos/PatrolServer/bashscanner/issues/2","labels_url":"https://api.github.com/repos/PatrolServer/bashscanner/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/PatrolServer/bashscanner/issues/2/comments","events_url":"https://api.github.com/repos/PatrolServer/bashscanner/issues/2/events","html_url":"https://github.com/PatrolServer/bashscanner/issues/2","id":105494429,"number":2,"title":"Issues with IPv6 and CNAME records","user":{"login":"jeffcasavant","id":2212754,"avatar_url":"https://avatars.githubusercontent.com/u/2212754?v=3","gravatar_id":"","url":"https://api.github.com/users/jeffcasavant","html_url":"https://github.com/jeffcasavant","followers_url":"https://api.github.com/users/jeffcasavant/followers","following_url":"https://api.github.com/users/jeffcasavant/following{/other_user}","gists_url":"https://api.github.com/users/jeffcasavant/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffcasavant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffcasavant/subscriptions","organizations_url":"https://api.github.com/users/jeffcasavant/orgs","repos_url":"https://api.github.com/users/jeffcasavant/repos","events_url":"https://api.github.com/users/jeffcasavant/events{/privacy}","received_events_url":"https://api.github.com/users/jeffcasavant/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-09T00:32:11Z","updated_at":"2015-09-09T06:44:40Z","closed_at":"2015-09-09T06:44:40Z","body":"```\r\njeff@casavant:~$ bash patrolserver\r\n> Hi jeff,\r\n> PatrolServer.com at your service. \r\n> I'm starting...\r\n\r\n> Your hostname (casavant.org) doesn't resolve to this IP.\r\n\tPlease enter the hostname that resolved to this ip: \r\n```\r\n\r\nThis loops indefinitely, with none of my domain names working.  Here's the relevant parts of my setup:\r\n\r\n```\r\njeff@casavant:~$ ifconfig\r\nvenet0    Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  \r\n          inet addr:127.0.0.2  P-t-P:127.0.0.2  Bcast:0.0.0.0  Mask:255.255.255.255\r\n          inet6 addr: 2a02:748:a800:ca7:ea75:b12d:25:3496/112 Scope:Global\r\n          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1\r\n          RX packets:11373164 errors:0 dropped:0 overruns:0 frame:0\r\n          TX packets:80786147 errors:0 dropped:2 overruns:0 carrier:0\r\n          collisions:0 txqueuelen:0 \r\n          RX bytes:1185538195 (1.1 GB)  TX bytes:118959092724 (118.9 GB)\r\n\r\nvenet0:0  Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  \r\n          inet addr:162.252.175.119  P-t-P:162.252.175.119  Bcast:162.252.175.119  Mask:255.255.255.255\r\n          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1\r\n\r\n```\r\n```\r\njeff@casavant:~$ dig casavant.org\r\n\r\n; <<>> DiG 9.9.5-3ubuntu0.4-Ubuntu <<>> casavant.org\r\n;; global options: +cmd\r\n;; Got answer:\r\n;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 40812\r\n;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1\r\n\r\n;; OPT PSEUDOSECTION:\r\n; EDNS: version: 0, flags:; udp: 512\r\n;; QUESTION SECTION:\r\n;casavant.org.\t\t\tIN\tA\r\n\r\n;; ANSWER SECTION:\r\ncasavant.org.\t\t9934\tIN\tCNAME\tjeffcasavant.com.\r\njeffcasavant.com.\t9934\tIN\tA\t162.252.175.119\r\n\r\n;; Query time: 11 msec\r\n;; SERVER: 8.8.8.8#53(8.8.8.8)\r\n;; WHEN: Tue Sep 08 20:26:33 EDT 2015\r\n;; MSG SIZE  rcvd: 87\r\n```\r\n\r\nHere are the results of the functions used in `TestHostname` to determine the IP and external IP:\r\n\r\n```\r\njeff@casavant:~$ dig +time=1 +tries=1 +retry=1 +short myip.opendns.com @resolver1.opendns.com\r\n162.252.175.119\r\n\r\njeff@casavant:~$ dig @8.8.8.8 +short casavant.org\r\njeffcasavant.com.\r\n162.252.175.119\r\n\r\njeff@casavant:~$ wget -qO- icanhazip.com\r\n2a02:748:a800:ca7:ea75:b12d:25:3496\r\n\r\njeff@casavant:~$ host casavant.org | cut -d' ' -f4\r\nalias\r\n162.252.175.119\r\naddress\r\nhandled\r\n```\r\n\r\nSeems there are issues related to IPv6 as well as to my CNAME setup.  Thoughts on how to remedy this?"},"comment":{"url":"https://api.github.com/repos/PatrolServer/bashscanner/issues/comments/138805726","html_url":"https://github.com/PatrolServer/bashscanner/issues/2#issuecomment-138805726","issue_url":"https://api.github.com/repos/PatrolServer/bashscanner/issues/2","id":138805726,"user":{"login":"dolfje","id":2472049,"avatar_url":"https://avatars.githubusercontent.com/u/2472049?v=3","gravatar_id":"","url":"https://api.github.com/users/dolfje","html_url":"https://github.com/dolfje","followers_url":"https://api.github.com/users/dolfje/followers","following_url":"https://api.github.com/users/dolfje/following{/other_user}","gists_url":"https://api.github.com/users/dolfje/gists{/gist_id}","starred_url":"https://api.github.com/users/dolfje/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dolfje/subscriptions","organizations_url":"https://api.github.com/users/dolfje/orgs","repos_url":"https://api.github.com/users/dolfje/repos","events_url":"https://api.github.com/users/dolfje/events{/privacy}","received_events_url":"https://api.github.com/users/dolfje/received_events","type":"User","site_admin":false},"created_at":"2015-09-09T06:44:40Z","updated_at":"2015-09-09T06:44:40Z","body":"Please reopen when not fixed ;)"}}