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

将127.0.0.1简写成1 #44

Closed
bnEars opened this issue Apr 10, 2024 · 1 comment
Closed

将127.0.0.1简写成1 #44

bnEars opened this issue Apr 10, 2024 · 1 comment

Comments

@bnEars
Copy link

bnEars commented Apr 10, 2024

www.7f000001.nip.io/www.127-0-0-1.nip.io/www.127.0.0.1.nip.io 能否简写成www.1.nip.io

@rses
Copy link
Member

rses commented Apr 12, 2024

I don't think the last hostname resolves to the other ones (127.0.0.1):

$ dig www.1.nip.io @ns1.nip.io

; <<>> DiG 9.18.18-0ubuntu0.22.04.2-Ubuntu <<>> www.1.nip.io @ns1.nip.io
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 13385
;; flags: qr aa rd; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1
;; WARNING: recursion requested but not available

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1680
;; QUESTION SECTION:
;www.1.nip.io.			IN	A

;; AUTHORITY SECTION:
www.1.nip.io.		3600	IN	SOA	ns1.nip.io. hostmaster.nip.io. 5 10800 3600 604600 3600

;; Query time: 28 msec
;; SERVER: 88.99.63.125#53(ns1.nip.io) (UDP)
;; WHEN: Fri Apr 12 09:10:51 BST 2024
;; MSG SIZE  rcvd: 92

@rses rses closed this as completed Apr 12, 2024
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