-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Support for getting host name #3
Comments
DNS lookup is already there to get the hostname. As far as scan is concerned, it is made on the local wifi network and hence IP addresses would be local also, most probably won't have any name associated with it. P.S. - I'm not still clear why you want hostname when scanning for hosts on a network. |
So I am missing something, where is the hostname stored?, I am expecting it to be stored in the class I am creating a smart hub. I am thinking of clessefying IP to company by open ports but as |
Sorry my bad for confusing the hostname with domain name. It's been pretty while working on this project. Let me check for the hostname. I'll update if I'm able to retrieve it. |
Cool thanks. On an unrelated note. |
I don't know why I kept it synchronised, yeah please try. I'll check the PR and test it. If it does the same thing then I'll merge into the code. |
@guyluz11 Please also tell me about which scanner are you talking about. host_scanner or port_scanner? |
Host scanner. Also is there a way to remove the |
In host scanner, you can't yield twice that's why for inner stream I used await for. PingSummary lines can be removed by removing this line. i'll not suggest removing it, but adding a flag to the method named debug. |
I'm unable to find any way to get hostname of local IPs. People are claiming it to be done using |
Not sure if this helps but Nmap and I think "Hostname" is also called "local domain name" and "DNS host name" and "mDNS host name". It can be resolved using |
I have found a way to do reverse DNS lookup and get the hostname from IP :D. After getting an InternetAddress object we need to run Example code
I will implement it after my pull requests will get accepted. |
Seems like |
…orActiveHostSetupToComplete is done, fix for osociety#3.
* Updated dependencies * Added comments to each dependency * Decided to update min dart version to 2.17.0 (even though pub get didn't show any errors) because it is the min version in dart_ping 7.0.0 * Reverted min dart version back to 2.12.0 as it is not mandatory * Updated min dart version to 2.17.0. * Added a function to find some of the mdns devices on the network * Added todo part for searchMdnsDevices and more srv record. * Inserting the name from the mdns into _make var in ActiveHost * More srv records. * More srv records. * Added mdns scanner to example and Changelog. Changed network_tool version to 2.1.0 * Remove Future<void> from main function in example folder * Made searching for mdns process better for Linux if avahi-browse or mdns-scan is installed on it. * Removing print * Added small comment for future mac implementation. * Small fix to srv results as avahi command does not return all of them. * Added a lot entry's to the tcpSrvRecords list, added udpSrvRecordList. * Added the udp list to the search. Small fix for multiple devices with the same mDNS name different address. * Made mdns_scanner accessible to users of the package. * Fix for #3. Improved pub.dev score. Change method names to be more precise. * Each ActiveHost object will automatically get host name when waitingForActiveHostSetupToComplete is done, fix for #3. * Fix for #44 * Updated package version to 2.2.0, updated changelog for the new version .Updated lint to 1.10.0. * Changed ip to address * Changed app version and changelog to version 3.0.0 as we did braking changed by changed methods name. * Solved some analysis warnings
Host name functionality got merged into dev branch. I will close this issue now, thanks. |
* Updated dependencies * Added comments to each dependency * Decided to update min dart version to 2.17.0 (even though pub get didn't show any errors) because it is the min version in dart_ping 7.0.0 * Reverted min dart version back to 2.12.0 as it is not mandatory * Updated min dart version to 2.17.0. * Added a function to find some of the mdns devices on the network * Added todo part for searchMdnsDevices and more srv record. * Inserting the name from the mdns into _make var in ActiveHost * More srv records. * More srv records. * Added mdns scanner to example and Changelog. Changed network_tool version to 2.1.0 * Remove Future<void> from main function in example folder * Made searching for mdns process better for Linux if avahi-browse or mdns-scan is installed on it. * Removing print * Added small comment for future mac implementation. * Small fix to srv results as avahi command does not return all of them. * Added a lot entry's to the tcpSrvRecords list, added udpSrvRecordList. * Added the udp list to the search. Small fix for multiple devices with the same mDNS name different address. * Made mdns_scanner accessible to users of the package. * Fix for #3. Improved pub.dev score. Change method names to be more precise. * Each ActiveHost object will automatically get host name when waitingForActiveHostSetupToComplete is done, fix for #3. * Fix for #44 * Updated package version to 2.2.0, updated changelog for the new version .Updated lint to 1.10.0. * Changed ip to address * Changed app version and changelog to version 3.0.0 as we did braking changed by changed methods name. * Solved some analysis warnings * Small fix for rear cases where DNS lookup crashes. * Added _ewelink to srv list. Added a way for users to forceUseOfSavedSrvRecordList. Searching srv list on linux will now also use avahi-browse as just using mdns-scan does not retrieve the full results. * MdnsInfo now also saves SrvResourceRecord and PtrResourceRecord objects from multicast_dns package as it contains more info about the mdns device. * Made the code easier to work with as developer.
Is there a way to get a hostname/dns name from specific IP?.
Or even better, have a way to get the hostname of all the IPs during the scan?.
If not what are the steps that missing in order to add this feature.
The text was updated successfully, but these errors were encountered: