Sponsored Content
Top Forums UNIX for Beginners Questions & Answers Linux is not appending domain name in DNS query Post 303043929 by broy32000 on Tuesday 11th of February 2020 09:01:11 AM
Old 02-11-2020
biman.net is the domain name. "shortname" does not exist neither as a DNS record , nor as device's name. I am just explaining how DNS client is behaving when query is made for a non-existent record
 

9 More Discussions You Might Find Interesting

1. Solaris

change dns (domain name)

hi gurus, need to check other than the hosts file, what else i need to change after we have changed the domain name in our company. currently, we are using olddnsname.com and will change it to newdnsname.com. i am not sure where else in solaris i need to take a look. please advise. thank... (4 Replies)
Discussion started by: kim_custodio
4 Replies

2. Windows & DOS: Issues & Discussions

How to: Linux BOX in Windows Domain (w/out joining the domain)

Dear Expert, i have linux box that is running in the windows domain, BUT did not being a member of the domain. as I am not the System Administrator so I have no control on the server in the network, such as modify dns entry , add the linux box in AD and domain record and so on that relevant. ... (2 Replies)
Discussion started by: regmaster
2 Replies

3. IP Networking

Select DNS Servers depending on the domain

Hello, I'm using CentOS 5.3, and I connect to a VPN in order to work. The problem is that I'm constantly accessing things on the local network and the remote network. But once I'm connected to the VPN I can't access local addresses by name, I have to use the ip-address. What I'd like is to... (4 Replies)
Discussion started by: martincastell
4 Replies

4. Linux

Configuring dns in local domain

Hi everybody, for revolving local host name of my network, I set up an dns server to solve my problem, but til now, nothing happen when I ping a hostname, but work on IP. Can you help me to correct the configuration. Here is all my settings: Voici mes fichiers de configuration: -... (2 Replies)
Discussion started by: beloge2002
2 Replies

5. UNIX for Advanced & Expert Users

DNS server choice: Windows DNS vs Linux BIND

I'd like to get some opnions on choosing DNS server: Windows DNS vs Linux BIND comparrsion: 1) managment, easy of use 2) Security 3) features 4) peformance 5) ?? I personally prefer Windows DNS server for management, it supports GUI and command line. But I am not sure about security... (2 Replies)
Discussion started by: honglus
2 Replies

6. Shell Programming and Scripting

Command to flush specific domain in SunOS 5 DNS

Hello to all, May you help saying me how to flush a specific domain in Linux SunOS5 I know the command rndc is to flush DNS cache, but I would like to know: 1- How to do a flush only on specific domain 2- How to see the content of DNS Resolver cache (similar to info given by IPCONFIG... (2 Replies)
Discussion started by: Ophiuchus
2 Replies

7. Linux

Domain registrars & DNS servers

I have read many tutorials on bind and i understand the A,MX, CNAME records. Internally, on a LAN we can install bind and create all these records and we can tell all PC and servers to use this bind as DNS server.that's fine. On the Internet, when we have purchased a valid domain like... (5 Replies)
Discussion started by: coolatt
5 Replies

8. Shell Programming and Scripting

Shell script appending output of sql query

I am writing the following script to create the file v_out.txt. sqlplus -s /nolog << EOF CONNECT scott/tiger@orcl; whenever sqlerror exit sql.sqlcode; set newpage 0; SET PAGESIZE 0; SET ECHO OFF; SET FEEDBACK OFF; SET HEADING OFF; SET VERIFY OFF; SET LINESIZE 100; set tab off; set... (7 Replies)
Discussion started by: itzkashi
7 Replies

9. UNIX for Advanced & Expert Users

Changing hosting company for one domain, how to deal with DNS?

Hello, Our organization is planning to move one domain from Dreamhost to Hubspot. Lets say, it is gem.xyxyxyxyx.com. Please note, website is not being migrated from one server to another, it is just hosting company. Here is from our internal DNS master server - # cat... (6 Replies)
Discussion started by: solaris_1977
6 Replies
DNSServiceQueryRecord(3DNS_SD)			      DNS Service Discovery Library Functions			    DNSServiceQueryRecord(3DNS_SD)

NAME
DNSServiceQueryRecord - query records from DNS SYNOPSIS
cc [ flag ... ] file ... -ldns_sd [ library ... ] #include <dns_sd.h> DNSServiceErrorType DNSServiceQueryRecord(DNSServiceRef *sdRef, DNSServiceFlags flags, uint32_t interfaceIndex, const char *fullname, uint16_t rrtype, uint16_t rrclass, DNSServiceServiceQueryRecordReply callBack, void *context); typedef void(*DNSServiceQueryRecordReply)(DNSServiceRef DNSServiceRef, DNSServiceFlags flags, uint32_t interfaceIndex, DNSServiceErrorType errorCode, const char *fullname, uint16_t rrtype, uint16_t rrclass, uint16_t rdlen, const void *rdata, uint32_t ttl, void *context); DESCRIPTION
The DNSServiceQueryRecord() function is used to query the daemon for any DNS resource record type. The callback argument to DNSService- QueryRecord() points to a function of type DNSServiceQueryRecordReply() listed above. The sdRef parameter in DNSServiceQueryRecord() points to an uninitialized DNSServiceRef. The DNSServiceQueryRecord() function returns kDNSServiceErr_NoError and initializes sdRef on success. The query runs indefinitely until the client terminates by passing the initialized sdRef from the query call to DNSServiceRefDeallocate(). The flag kDNSServiceFlagsLongLivedQuery should be passed in the flags argument of DNSServiceQueryRecord() to create a "long-lived" unicast query in a non-local domain. This flag has no effect on link local multicast queries. Without this flag, unicast queries will be one-shot and only the results that are available at the time of the query will be returned. With long-lived queries, add or remove events that are available after the first call generate callbacks. The interfaceIndex argument specifies the interface on which to issue the query. Most applications will pass a 0 as the interfaceIndex to make the query on all interfaces. See the section "Constants for specifying an inter- face index" in <dns_sd.h>. The fullname argument indicates the full domain name of the resource record to be queried. The rrtype argument indicates the resource record type: kDNSServiceType_PTR, for example. The rrclass argument holds the class of the resource record to be queried (kDNSServiceClass_IN). The context argument can be NULL and points to a value passed to the callback function. The sdRef argument passed to the callback function is initialized by the call to DNSServiceQueryRecord(). Possible values for the flags parameter to the callback function are kDNSServiceFlagsMoreComing and kDNSServiceFlagsAdd. The kDNSServiceFlagsMoreComing value is set to indicate that additional results are immediately available. The kDNSServiceFlagsAdd value indicates that the results returned to the call- back function are for a valid DNS record. If kDNSServiceFlagsAdd is not set, the results returned are for a delete event. The errorCode passed to the callback is kDNSServiceErr_NoError on success. Otherwise, failure is indicated and other parameter values are undefined. The fullname parameter indicates the full domain name of the resource record . The rrtype indicates the resource record type. The rrclass indi- cates the class of the DNS resource record. The rdlen parameter indicates the length of the resource record rdata in bytes. The rdata parameter points to raw rdata of the resource record. The ttl parameter indicates the time to live of the resource record in seconds. The context parameter points to the value passed by the application in the context argument to the DNSServiceQueryRecord() call. RETURN VALUES
The DNSServiceQueryRecord function returns kDNSServiceErr_NoError on success. Otherwise, an error code defined in <dns_sd.h> is returned to indicate the specific failure that occurred. ATTRIBUTES
See attributes(5) for description of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Committed | +-----------------------------+-----------------------------+ |MT-Level |Safe | +-----------------------------+-----------------------------+ SEE ALSO
DNSServiceBrowse(3DNS_SD), DNSServiceRegister(3DNS_SD), DNSServiceResolve(3DNS_SD), attributes(5) SunOS 5.11 20 Aug 2007 DNSServiceQueryRecord(3DNS_SD)
All times are GMT -4. The time now is 01:04 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy