gethostbyname() and gethostbyaddr() are both returning different h_name values in their returned hostent structs when I call them in my program. I'm wondering if this behaviour is normal or should the two return identical host names?
gethostbyname() and gethostbyaddr() returning different host names?
411 views Asked by Vimzy At
0
There are 0 answers
Related Questions in C
- How to call a C language function from x86 assembly code?
- What does: "char *argv[]" mean?
- User input sanitization program, which takes a specific amount of arguments and passes the execution to a bash script
- How to crop a BMP image in half using C
- How can I get the difference in minutes between two dates and hours?
- Why will this code compile although it defines two variables with the same name?
- Compiling eBPF program in Docker fails due to missing '__u64' type
- Why can't I use the file pointer after the first read attempt fails?
- #include Header files in C with definition too
- OpenCV2 on CLion
- What is causing the store latency in this program?
- How to refer to the filepath of test data in test sourcecode?
- 9 Digit Addresses in Hexadecimal System in MacOS
- My server TCP doesn't receive messages from the client in C
- Printing the characters obtained from the array s using printf?
Related Questions in NETWORKING
- How to avoid duplicates with the pull-based subscribe model?
- How to simulate CSMA/CD protocol in ns3?
- Network System - Cisco Packet Tracer
- Adhoc / mesh network not working (with and without batman-adv)
- Algorithm for finding a subset of nodes in a weighted connected graph such that the distance between any pair nodes are under a postive number?
- Python Client-Server Communication with Protocol
- I registered a service in eureka which is resolving through java code. But it is not able to resolve its name when hitting through chrome or postman
- Share files from the server without data or internet usage
- Player names not synchronizing in unity Mirror Networking
- My phone can not visit the server on macos in the same local network
- Unable to ping remote websites from an ipV6 only ubuntu ec2 Instance
- Linux Networking - Routing packets from one network interface to another
- wrong output from Supernetting algorithm
- Mapping localhost port on host to docker container
- Microsoft Message Analyzer disable resolving IP address to their domain names a.k.a turn off AutoIP feature
Related Questions in GETHOSTBYNAME
- Confusing behavior when attempting to use the HOSTALIASES environment variable
- How does socket.gethostbyname () choose from multiple IP addresses?
- gethostbyname_r host not found error while using name as localhost
- python - socket.gethostbyname() outputting wrong IP Address
- How to compile C-code on a 64-bit Linux system for an ARM 32-bit executable
- getaddrinfo expiration value (Linux hostname entries)
- gethostbynamel() and dns_get_record() returns empty for some domains
- Erlang: Why does inet:gethostbyname deliver 2 addresses whereas inet:getaddr delivers just one
- Embedded Segger embOS: getaddrinfo translation in gethostbyname
- Where is the source code implementation of gethostbyname() function?
- gethostbyname_r() calls for non-resolvable hosts always returning with h_errnop set to TRY_AGAIN (on Ubuntu 19.04 and 20.04)
- How to change gethostbyname into getaddrinfo?
- PHP: Gethostbyname and domain containing a number
- gethostbyname return ip of non existing host
- Get IP from URL (C++)
Related Questions in GETHOSTBYADDR
- How to get hostname from an IPv6 address in Python using socket.gethostbyaddr
- How to make a reverse DNS lookup on CloudFlare in PHP?
- python3: socket.gethostbyaddr(): "Unknown host" vs "Host name lookup failure"
- Slow PHP Routine
- Socket.gethostbyaddr() return empty aliaslist in linux but not in windows
- Python Socket - getting lan connected server host names
- Does gethostbyaddr reveals my server's IP address?
- When would multiple calls to gethostbyname be unsafe?
- Why can I run a python server on 127.0.0.2 but not on 127.0.0.1? UnicodeDecodeError
- Filter by Domain or Word using python
- Memcpy and hostent struct on C
- Python - How to take input from command line and pipe it into socket.gethostbyaddr("")
- Invalid IP Address with multi-line IP Address
- PHP: gethostbyaddr() returning an invalid url
- Python 2.7 socket.gethostbyaddr timeout before throwing socket.herror
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)