dns

Is there any way to avoid showing “xn--” for IDN domains?

馋奶兔 提交于 2021-02-20 19:00:00
问题 If I use a domain such as www.äöü.com , is there any way to avoid it being displayed as www.xn--4ca0bs.com in users’ browsers? Domains such as www.xn--4ca0bs.com cause a lot of confusion with average internet users, I guess. 回答1: This is entirely up to the browser. In fact, IDNs are pretty much a browser-only technology. Domain names cannot contain non-ASCII characters, so the actual domain name is always the Punycode encoded xn--... form. It's up to the browser to prettify this, but many

Is there any way to avoid showing “xn--” for IDN domains?

放肆的年华 提交于 2021-02-20 18:59:12
问题 If I use a domain such as www.äöü.com , is there any way to avoid it being displayed as www.xn--4ca0bs.com in users’ browsers? Domains such as www.xn--4ca0bs.com cause a lot of confusion with average internet users, I guess. 回答1: This is entirely up to the browser. In fact, IDNs are pretty much a browser-only technology. Domain names cannot contain non-ASCII characters, so the actual domain name is always the Punycode encoded xn--... form. It's up to the browser to prettify this, but many

idn_to_ascii() in 5.2.17

旧巷老猫 提交于 2021-02-20 11:50:45
问题 There's a very handy function idn_to_ascii() in PHP 5.3, but I'm running 5.2.17 and I can't change that. How do I encode Unicode domain names to ascii then? 回答1: Peter's answer gives you the official IDN functions in PHP 5.2, and if possible it's probably the best answer. However some users will be unable to install a PECL library on their PHP system, so they would need to have a conversion library written in plain PHP which they can just include within their own code. Fortunately there is a

DNS resolution in docker containers

自古美人都是妖i 提交于 2021-02-20 00:40:29
问题 [ environment ] CentOS 7 Docker 19.03.12, build 48a66213fe I have a failing cerbot (let's encrypt client) inside a docker container. It looks like acme-v02.api.letsencrypt.org is not resolvable from the container but is resolvable from the host (the most probable cause). I am used to the fact that containers inherit from the host's DNS parameters but, in the case of AWS EC2 instances, there seems to be some subtilities DNS Manual setting [ec2-user@ip-172-31-32-243 ~]$ cat /etc/resolv.conf #

setup Reverse lookup to get CName from IP

本小妞迷上赌 提交于 2021-02-19 08:55:06
问题 I have created a CName entry in forward lookup in DNS and then created a PTR in Reverse lookup in DNS but following code always returns aliases blank. IPHostEntry reverse = Dns.GetHostEntry(txtIPaddress.Text); Response.Write(reverse.HostName); I have read somewhere that if IPv6 is enabled then aliases will be blank. So, i have disabled on both client and server machine using fixit given here: http://support.microsoft.com/kb/929852#fixit4me but nothing is working any help will be appreciated.

Too many redirects error using Python requests

狂风中的少年 提交于 2021-02-19 05:28:38
问题 HTTP requests are working fine on my localhost, but running the same HTTP requests using the python requests library on my server returns a "Too Many Redirects" error When I enter localhost/terminal/jfk in a browser, I get a json dictionary as expected. However, when I run the following in python using the python requests library on my server requests.get('http://splitmyri.de/terminal/jfk') I receive a "Too Many Redirects" error from the requests module. Any thoughts as to what's causing the

Too many redirects error using Python requests

扶醉桌前 提交于 2021-02-19 05:28:11
问题 HTTP requests are working fine on my localhost, but running the same HTTP requests using the python requests library on my server returns a "Too Many Redirects" error When I enter localhost/terminal/jfk in a browser, I get a json dictionary as expected. However, when I run the following in python using the python requests library on my server requests.get('http://splitmyri.de/terminal/jfk') I receive a "Too Many Redirects" error from the requests module. Any thoughts as to what's causing the

Client with the currently selected authenticator does not support any combination of challenges that will satisfy the CA

我的未来我决定 提交于 2021-02-19 04:09:45
问题 I've been following this tutorial to add SSH Certification to my site. However at the moment this method does not work for the time-being due to a security flaw, so here is the alternate method. I'm trying to implement the alternate code-paste: sudo certbot --authenticator webroot --webroot-path <path to served directory> --installer nginx -d <domain> however am not sure what to put in <path to served directory> . Is the "path to served directory" the nginx config? Would it look something

Client with the currently selected authenticator does not support any combination of challenges that will satisfy the CA

痴心易碎 提交于 2021-02-19 04:09:28
问题 I've been following this tutorial to add SSH Certification to my site. However at the moment this method does not work for the time-being due to a security flaw, so here is the alternate method. I'm trying to implement the alternate code-paste: sudo certbot --authenticator webroot --webroot-path <path to served directory> --installer nginx -d <domain> however am not sure what to put in <path to served directory> . Is the "path to served directory" the nginx config? Would it look something

/etc/hosts ignored in mac El Capitan (10.11.5)

冷暖自知 提交于 2021-02-18 21:02:07
问题 I'm attempting to redirect an existing web address to a remote machine on my subnet. To do that, I put the following into /etc/hosts 192.168.1.249 holub.com and flush the DNS cache with sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder However, when I ping holub.com (the most reliable way that I know to see how the address is actually resolved), I see the real web address (204.13.10.74), not the one specified in /etc/hosts (192.168.1.249). Interestingly, the mysqladmin utility does