Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nip.io and 127.0.0.1 #2

Open
rstub opened this issue Aug 20, 2021 · 2 comments
Open

nip.io and 127.0.0.1 #2

rstub opened this issue Aug 20, 2021 · 2 comments

Comments

@rstub
Copy link

rstub commented Aug 20, 2021

For me 127.0.0.1.nip.io does not work:

$ dig  127.0.0.1.nip.io 

; <<>> DiG 9.16.15-Debian <<>> 127.0.0.1.nip.io
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 58706
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;127.0.0.1.nip.io.              IN      A

;; Query time: 4 msec
;; SERVER: 192.168.178.1#53(192.168.178.1)
;; WHEN: Fri Aug 20 20:24:25 CEST 2021
;; MSG SIZE  rcvd: 34

Most likely this is my router that also acts as DNS server that tries to be clever and I have not found a way to configure that. However, 127.0.1.1.nip.io gets past my router:

$ dig  127.0.1.1.nip.io 

; <<>> DiG 9.16.15-Debian <<>> 127.0.1.1.nip.io
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 34716
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
;; QUESTION SECTION:
;127.0.1.1.nip.io.              IN      A

;; ANSWER SECTION:
127.0.1.1.nip.io.       431238  IN      A       127.0.1.1

;; Query time: 0 msec
;; SERVER: 192.168.178.1#53(192.168.178.1)
;; WHEN: Fri Aug 20 20:26:48 CEST 2021
;; MSG SIZE  rcvd: 61

After changing this name I got the set-up running. I understand this is a local problem, but others might be affected as well. I can provide a PR if you are interested.

@deskoh
Copy link
Owner

deskoh commented Aug 22, 2021

So what's the solution you have in mind?

@rstub
Copy link
Author

rstub commented Aug 23, 2021

I suggest to replace all instances of 127.0.0.1.nip.io (and one instance of localhost) with 127.0.1.1.nip.io. This should not change anything in the functionality, since both 127.0.0.1 and 127.0.1.1 are both loopback addresses.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants