dns

How to make Windows DNS and WINS settings persist in an Azure VM?

纵然是瞬间 提交于 2019-12-23 21:10:05
问题 I have a domain controller set up in an Azure VM, and a couple of other servers also set up as VMs. When I set up the server VMs, I configured DNS and WINS to point to the IP address of the DC and joined them to the domain. However, these settings don't survive a shutdown (where the VM is deallocated). When the VM is started back up, DNS and WINS are empty, and domain authentication does not work. I read that I should provision new VMs via PowerShell commandlets, specifically setting up

Find who is hosting a website using PHP

狂风中的少年 提交于 2019-12-23 18:16:29
问题 I am developing a website to show information about a website like ip, location, coordinates, flag of country, dns entries and more. I managed to collect everything, but the only thing left is to find who is hosting the website. I saw in whoishostingthis.com that you could find the name of datacenter or host of any domain which is exactly what i wanted. I did a lot of research on how to collect that data, but nothing worked till now. I know that it has something to do with reverse dns , but i

Get DNS SRV record using JNDI

亡梦爱人 提交于 2019-12-23 17:00:44
问题 I am trying to get SRV records from a DNS server using JNDI. Hashtable<String, String> env = new Hashtable<String, String>(); env.put("java.naming.factory.initial", "com.sun.jndi.dns.DnsContextFactory"); env.put("java.naming.provider.url", "dns://dns.server.com"); DirContext ctx = new InitialDirContext(env); Attributes attributes = ctx.getAttributes("_sip._udp", new String [] { "SRV" }); return attributes; But when trying to get attributes I get the following exception DNS error [Root

How can I use AWS Route 53 to set up a subdomain

喜欢而已 提交于 2019-12-23 16:31:07
问题 I'm very confused... I'm just getting my head around the whole DNS thing and, while it's simple enough to understand, I'm having trouble setting up subdomains using Route 53. I've set up the A Record for my new domain (for argument's sake, let's call it mydomain.com. and it works perfectly! What I'd like to be able to do now is set up a subdomain ( api.mydomain.com. ), which should point to mydomain.com/api . How can I achieve this using AWS? Here's some more info on my architecture. Domain

VB6 Lookup Hostname From IP, Specifying DNS Server

有些话、适合烂在心里 提交于 2019-12-23 13:27:42
问题 I know how to look up a hostname from an IPv4 in VB using the GetHostByAddr Windows API call (this works great). However, that function does not allow one to specify the DNS server to use. Sometimes the default company DNS servers are fine, but other times I need to specify an external DNS server for lookups, and I don't think doing a shell nslookup and parsing the output is the best method, here. Note: this is actually going to be used as VBA code in an Excel workbook to help someone else do

Persistent DNS caching not utilized by Python's socket.getaddrinfo/mercurial

时光总嘲笑我的痴心妄想 提交于 2019-12-23 13:09:20
问题 I used to have very slow DNS lookups on my Ubuntu machine when connecting through one Modem/ISP. I followed instructions (such as those here) to use persistent DNS caching so I don't do repeated DNS look ups, and everything became much faster. However, I noticed that when pulling/pushing repos on mercurial, it was painfully slow to even transfer very small changes. Looking deeper, I found that all the time was taken by _socket.getaddrinfo , i.e., DNS lookups. Why is it that even though all

DNS简单配置

喜你入骨 提交于 2019-12-23 12:57:35
options 常用参数 listen-on - 设置监听地址和端口.例如: listen-on { 192.168.100.100; }; - 在该地址的53端口上监听 listenon port 1234 { !192.168.100.100; }; - 在除了该地址的1234端口上监听 version - 回答针对服务器版本的请求时的内容,缺省返回的是服务器的真实版本 directory - 服务器的工作目录,如果指定了,那么其他参数将可使用相对路径进行配置 dump-file - 当执行 rndc dumpdb 命令时,服务器存放数据库文件的路径,缺省名为 named_dump.db pid-fike - 进程ID文件的存放路径 statisctics-file - 当使用 rndc stats 命令的时候,服务器会将统计信息追加到的文件路径名,缺省值为 named.stats recursion - 递归查询处理 yes - 服务器将会做出所有能回答查询请求的工作(默认) off - 如果服务器不知道答案,它将返回一个推荐(referral)响应 no - 捕获租住用户从服务器的缓存中得到数据,它仅仅阻止新数据作为查询的结果被缓存 forward - 转发开关 first - 默认情况下,使服务器先查询设置的 forwarders ,如果它没有得到回答

Setting Java DNS cache TTL

本秂侑毒 提交于 2019-12-23 11:55:10
问题 I'm attempting to change the DNS cache timeout in Java 1.6. I see discussion here of using something like the following: java.security.Security.setProperty ("networkaddress.cache.ttl" , TTL_SECS); But I've tried this simple test in Win 7.... System.out.println("DEFAULT DNS TTL: "+sun.net.InetAddressCachePolicy.get()); java.security.Security.setProperty ("networkaddress.cache.ttl" , "123"); System.out.println("DEFAULT DNS TTL: "+sun.net.InetAddressCachePolicy.get()); ... and the output doesn't

Domain name existence via “dig”

浪尽此生 提交于 2019-12-23 10:57:18
问题 Would it be possible to check a domain name its existence by checking the output of "dig"? Inside the bind sources I found these constants: 0 DNS_R_NOEROR 1 DNS_R_FORMERR 2 DNS_R_SERVFAIL 3 DNS_R_NXDOMAIN 4 DNS_R_NOTIMP 5 DNS_R_REFUSED 6 DNS_R_YXDOMAIN 7 DNS_R_YXRRSET 8 DNS_R_NXRRSET 9 DNS_R_NOTAUTH 10 DNS_R_NOTZONE 16 DNS_R_BADVERS <RCODE 11> # 11 has no macro <RCODE 12> # 12 has no macro <RCODE 13> # 13 has no macro <RCODE 14> # 14 has no macro <RCODE 15> # 15 has no macro In my opinion

How to mask URL redirect with Google Domains

五迷三道 提交于 2019-12-23 09:41:58
问题 On Google Domains, I own www.example.com . I also have hosting for free at www.university.com/~myname . I want to be able to forward www.example.com to www.university.com/~myname , but I want the domain to still show as www.example.com . I also want www.example.com/something/something.txt to forward to www.university.com/~myname/something/something.txt , with the URL still showing www.example.com/something/something.txt . How can I do this? (I know this question exists, but the settings page