Linux command to get mDNS Service discovery and to get its IP Address

Naveen G S

New Member
Joined
Jun 25, 2019
Messages
2
Reaction score
0
Credits
0
Dear all,
I am broadcasting mDNS service from my WiFi module. I need to discover that in my Linux PC and get its IP address.
1. I used mdns-scan command and I am getting the Service name listed.
2. I used avahi-browse --all and I am getting my service name listed.
3. But How do I get the IP address of that service? That is my requirement.
4. In Android applications I am able to get full details of the services. How do I get it in linux?

Thank You
Naveen G S
 


The IP address of the service is obtained in the terminal "ifconfig -a" (without quotes). Then you will get some results, because in the eighth or sixteenth line, just after the word netmask, you will have the IP you want.
If it doesn't work for you, use the command "sudo apt install nmap" (without quotes).
I hope I helped you.
! Have a nice day! :D
(La dirección IP del servicio se obtiene en el terminal "ifconfig -a" (sin las comillas). Luego te darás unos resultados, pues en la octava o dieciséisisava línea, justo después de la palabra netmask, tendrás la IP que quieres.
Si no te funciona usa antes el comando "sudo apt install nmap" (sin las comillas).
Espero haberte ayudado
! Que tengas un buen día¡ :D )
 
Last edited:
Hi Daniel,
1. here is the output of the above commands
4142

But the IP address acquired on my device side is 192.168.43.74 Where is that details?
2. nmap already installed but I didn't the IP of the service I am broadcasting.

3. Here I have attached my service details with "avahi-browse --all" and "mdns-scan" commands.
4143


Thank You
Naveen G S
 
quick questions on NMAP.
1. I understand that the default is that NMAP scans only 1000 ports. Is that true and how can the default be changed to the 65000 ports complete scan?
2. If an enterprise obscures standard ports (i.e., change port 53 to port 8853) will NMAP still know that port 8083 is DNS?
 

Members online


Latest posts

Top