Must be said, I'm a complete ignorant on these matters.

Is there a way or service so I can take and IP address and its port and make it a DNS? Is it possible or am I doomed?.

Thank you.

closed as unclear what you're asking by Zac67, Ron Trunk, Ron Maupin Jun 3 '18 at 16:41

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 2
    What do you mean by 'make it a DNS'? Keep in mind that questions about protocols above OSI layer 4 (like DNS) are off topic here. They can be asked on Super User. – Teun Vink Jun 3 '18 at 11:42
  • IP is a layer-3 protocol used to route packets between networks. DNS is a layer-4 protocol used to communicate datagrams between processes. UDP datagrams are encapsulated inside IP packets, so, no, you cannot convert from one to another. – Ron Maupin Jun 3 '18 at 16:51

Port numbers are essentially either "well-known", which are those a server will listen on, and those allocated on the fly. The well-known numbers are managed by IANA and published here https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml

Additionally, most operating systems have a file such as Unix's /etc/services for this information.

"Reverse lookup" records for IP addresses are stored in the DNS as PTR records. Be aware that most computers will not have any PTR records. Most operating systems and DNS web sites have a method for looking these up. Most Unix-like operating systems have dig:

$ dig -x
;; ANSWER SECTION:   21599   IN  PTR google-public-dns-a.google.com.

IP addresses which don't have PTR records will still show the organisation they are allocated to in the WHOIS database. The Unix tool whois will look these up:

$ whois
NetRange: -
NetName:        LVLT-GOGL-8-8-8
NetHandle:      NET-8-8-8-0-1
Parent:         LVLT-ORG-8-8 (NET-8-0-0-0-1)
NetType:        Reallocated
Organization:   Google LLC (GOGL)
RegDate:        2014-03-14
Updated:        2014-03-14
Ref:            https://whois.arin.net/rest/net/NET-8-8-8-0-1

You will see that this address is inside a /24 allocated to Google, but nothing specifically about the host on this address.

Not the answer you're looking for? Browse other questions tagged or ask your own question.