Feel free to contact me if you should need any further information. 10 IN TXT "model=MacBookPro3,1"įor a more shell script friendly output, use '+short': $ dig +short -x 10.0.0.200 -p 5353ĭepending on your intended use case there may be a more appropriate method of performing the query. 10 IN PTR atj-mbp.local.Ītj-mbp._device-info._tcp.local. flags: qr aa QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1Ģ00.0.0.10.in-addr.arpa. >HEADER<<- opcode: QUERY, status: NOERROR, id: 54300 MAC addresses are a set of six two-character strings separated by hyphens or colons, for. If you use ifconfig and grep or perl or whatever I'm sure you can set it to the mac address. A hostname is a string, such as DESKTOP-PE7C22J or webdev.jdlocal. Most distributions read the name in from a file but you can give the hostname command any input you want. Since you already know the IP addresses you can look up the reverse entry for each IP address to get the associated forward address: $ dig -x 10.0.0.200 -p 5353 The hostname is set during startup using the command 'hostname'.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |