I see in the man page, there is EAI_NODATA. Does that refer to the case above where there are no addresses found? Meaning getaddrinfo returns 0 implies at least one address was found?
Is it possible for getaddrinfo to return 0 (success) but found no addresses (`addrinfo*` is null)
393 Views Asked by bun9 At
1
There are 1 best solutions below
Related Questions in LINUX
- Is there some way to use printf to print a horizontal list of decrementing hex digits in NASM assembly on Linux
- Why does Hugo generate different taxonomy-related HTML on different OS's?
- Writes in io_uring do not advance the file offset
- Why `set -o pipefail` gives different output even though the pipe is not failing
- what really controls the permissions: UID or eUID?
- Compiling eBPF program in Docker fails due to missing '__u64' type
- Docker container unable to make HTTPS requests to external API
- Whow to use callback_query_handler in Python 3.10
- Create kea runtime directory at startup in Yocto image
- Problem on CPU scheduling algorithms in OS
- How to copy files into the singularity sandbox?
- Android kernel error: undefined reference to `get_hw_version_platform'
- Is there a need for BPF Linux namespace?
- Error when trying to execute a binary compiled in a Kali Linux machine on an Ubuntu system
- Issue with launching application after updating ElectronJs to version 28.0.0 on Windows and Linux
Related Questions in SOCKETS
- Node.js Server + Socket.IO + Android Mobile Applicatoin XHR Polling Error...?
- My server TCP doesn't receive messages from the client in C
- how is strncpy able to copy from source to empty destination?
- Python Multicast packet receiver stops receiving multicast packets when computer is connected to WiFi
- Python Client-Server Communication with Protocol
- Reversed TLS re-connection issue
- Android 13 & 14 seem to close WebSocket connection, if i put app in background, after ~20s
- Java SocketException: Connection reset,. What is the cause?
- Multipart/form-data with chunked data transfer (ICAP protocol)
- View Socket View
- Client connection timeout during Android & Windows PC communication via sockets
- Browser connect to raw sockets even possible?
- Protocol 43200 after unpacking received data
- Unity SocketIo using Best http2 plugin want to use in webgl
- How does pre-allocating a pool of SocketAsyncEventArgs objects upfront improve the performance of a server application in c#
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 DNS
- AWS Dns record A not navigate to elb
- I created a domain name from cloudflare, and Hoisted my static site hosted in google firebase, error in adding custom domain in firebase
- I am the domain admin, newbie, how do I connect youtube.com on my domain?
- The problem with raising the DNS server on Ubuntu 20.04 - bind9
- 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
- Assigned A record for Subdomain in Cloud DNS to Compute Engine VM instance but not propagated/resolved yet
- Why Bind9 responds with latency for RPZ rule?
- Create aws certification for domain
- Make Bind DNS server to request only root DNS servers of IANA website
- Domain Still Redirecting Despite Transferring Out of Godaddy
- Set up MX records in apache/Ubuntu to point to external mail server
- Changing AWS registred domain back to AWS name servers
- Docker networking forwarding failed
- Can access IP address of domain via mobile but not wifi
- CURL got Could not resolve host: my subdomain
Related Questions in GETADDRINFO
- error when starting dev server:Error: getaddrinfo ENOTFOUND localhost at GetAddrInfoReqWrap.onlookup[as oncomplete](node:internal/dns/promises:82:17)
- Error: getaddrinfo EAI_AGAIN when running in container
- Having trouble connecting client to server with IPv6 addresses (echoclient/echoserver pair)
- Valgrind showing still reachable memory leak with getaddrinfo
- "npm install" command gives "EAI_AGAIN" error with "getaddrinfo" syscall
- Error fetching extensions. getaddrinfo ENOTFOUND open-vsx.org
- Is it possible for getaddrinfo to return 0 (success) but found no addresses (`addrinfo*` is null)
- "getaddrinfo() argument 1 must be string or None " error after call this code
- How to print ip address from getaddrinfo
- Should I think about linked list returned by getaddrinfo when I get addrinfo for my "home" server
- "[Errono 11003] getaddrinfo failed" occurs only when running the pyinstaller .exec file on the company's internal network PC
- getaddrinfo behaving differently for RHEL 8 and RHEL 7
- getaddrinfo expiration value (Linux hostname entries)
- Embedded Segger embOS: getaddrinfo translation in gethostbyname
- GetAddrInfo (C++) on Windows not handling IPv6 correctly, returning error code 11004 for domains that resolve fine through other means
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)
Popular # Hahtags
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?
TL;DR: Yes. Because of how the DNS work (see below), not specific to
getaddrinfo(other API will have the same case to handle).Irrespective to the details of the implementation of
getaddrinfo(ifaddrinfois NULL or points to an empty array), the case of "no error + no data" is totally legit in DNS.A DNS reply with no data is not a failure. You are just asking for something that doesn't exist and you get a reply (so it is different from a timeout or getting an error code from the DNS server) that just states "no data".
No data by itself is not a DNS error code. The code is "NOERROR". But what is considered as NODATA pseudo "error" code is "NOERROR" error code + no data in answer, ie empty
ANSWERsection in the DNS message received (a DNS message can have 4 sections:ANSWER,AUTHORITY,ADDITIONALbesides theQUESTIONsection). It typically happens when you request a name that exists but a record type that does not for this name.For example:
(
NAPTRis a rarely used record type)You can see:
NOERRORerror code: the answer is okANSWERsection at all, meaning this couple of name + record type does not exist; it is fine, a "not exists" is not an error (same in SQL: if you query a table for some rows, and you get 0 rows back, it is not an error, you just get an empty set as result).Compare that with when you try on a name that does not exist at all:
Completely different here: yes there is no
ANSWERsection at all, but what is important is that the error code isNXDOMAINwhich means "the name you query does not exist" (hence does not exist for any record type you might want to try).You will get "nodata" cases too for ENT or Empty Non Terminals: the name may not exist (no record types defined at that name level), but names below do exist. In cases like that, a nameserver can not reply
NXDOMAINbecause receivingNXDOMAINon a name means all names "below" do not exist as well (see RFC 8020 "NXDOMAIN: There Really Is Nothing Underneath")