dns

nginx keepalive and dns resolver

走远了吗. 提交于 2021-02-07 12:50:24
问题 I have a nginx instance in AWS that has upstream Application layer. There are two requirements for nginx - keepalive - use resolver to dynamically resolve the upstream I am able to make either of them work. Here is the config for making keepalive work: upstream "backend" { server "appserver.example.com:443"; keepalive 250; } server { resolver 10.0.0.2 valid=60s; server_name _; location / { proxy_http_version 1.1; proxy_pass https://backend; } } Here is the config for DNS resolver to work:

Resolve containers using consul DNS on host

放肆的年华 提交于 2021-02-07 05:57:04
问题 Aim: Get a docker container to use the DNS provided by the host machine, which is a consul agent running in another container, to access services available via traefik reverse proxy. Setup Host machine: Ubuntu 16.04.2 LTS Registrator registers new containers to the consul agent, traefik is the reverse proxy to load balance the services and make them available. There is a general node app which returns "Hello World" when you hit the '/' path Container 1. docker run -d --net=host consul agent

How to create a subdomain at freenom.com?

独自空忆成欢 提交于 2021-02-06 11:33:52
问题 I created a domain at freenom.com https://imgur.com/a/ClaXVLX which points to my app at Digital ocean droplet. and next day I created this domain I tested and it works. that domain is 1) at printscreen above. Now I want to create several subdomains, as I know that is possible to make: site.com - domain dev1.site.com, dev2.site.com - subdomains But I do not know what must be entered in fields 2) and 3) ? When I tried as at printscreen above I got error : Error occured: Invalid value in

Domain Mapping Setup for slug of a different domain [closed]

送分小仙女□ 提交于 2021-02-05 12:03:08
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 23 hours ago . Improve this question Not sure how to explain this but will try my best, I have a laravel application hosted on aws ec2 running on maindomain.com maindomain.com (main website) maindomain.com/storexyz (main website slug) storexyz.com (new domain) There are individual stores in

How many A records can fit in a single DNS response?

烈酒焚心 提交于 2021-02-05 08:27:29
问题 What are the size limits on DNS responses? For instance how many 'A' resource records can be present in a single DNS response? The DNS response should still be cache-able. 回答1: The largest guaranteed supported DNS message size is 512 bytes. Of those, 12 are used up by the header (see §4.1.1 of RFC 1035). The Question Section appears next, but is of variable length - specifically it'll be: the domain name (in wire format) two bytes each for QTYPE and QCLASS Hence the longer your domain name is

DNS when hosting a static website on Google Cloud Platform bucket

百般思念 提交于 2021-02-05 07:13:06
问题 Sorry if my question may seem messy I have only a basic idea about DNS or hosting. The story is the following: I have created a couple of my personal webpages and registered a domain. Then I found out that I don't need a "big" hosting for my couple of pages and it's better to host a website in the cloud, I chose GCP for hosting, found this tutorial and followed through to successfully achieve my goal of hosting a static website. Then I wanted to share a link to my website in social media and

DNS when hosting a static website on Google Cloud Platform bucket

风格不统一 提交于 2021-02-05 07:13:05
问题 Sorry if my question may seem messy I have only a basic idea about DNS or hosting. The story is the following: I have created a couple of my personal webpages and registered a domain. Then I found out that I don't need a "big" hosting for my couple of pages and it's better to host a website in the cloud, I chose GCP for hosting, found this tutorial and followed through to successfully achieve my goal of hosting a static website. Then I wanted to share a link to my website in social media and

Unreachable gitlab page with custom domain

亡梦爱人 提交于 2021-01-29 15:00:57
问题 I created a site with Hugo and I hosted it as a gitlab page. To assign my custom domain I followed the instructions of this document of gitlab. I created three DNS records: one of type A with name @ and value 35.185.44.232 ; one of type TXT with name @ and value _gitlab-pages-verification ... for the verification of the ownership of the domain; one of type A with name www and value 35.185.44.232 . If I access the site using the address https://example.com everything works normally; but if I

Require forward-dns not working as expected

你离开我真会死。 提交于 2021-01-29 12:56:43
问题 Quick explanation: Home hobby server Some public services, some I'd like to restrict to internal only Since I discovered reverse proxies (😊) I've been migrating everything behind subdomains of my domain, via Apache I then discovered that I could no longer simply use Require local as before, since Apache always sees the public IP address of the client Require forward-dns appears to be the solution I want, however it's not giving the expected result I'm on a dynamic IP, but the results seem

Intermittent curl error when posting to SMS gateway (bad DNS record?)

梦想的初衷 提交于 2021-01-29 08:41:29
问题 The php system I am supporting posts data to an SMS gateway to send SMS messages. It successfully posts the data over 99% of the time. Very occasionally it will fail with the curl error SSL: no alternative certificate subject name matches target host name 'api.twilio.com' . This can happen in the middle of sending dozens of SMS messages, several will post and get sent, one or two will fail and then the rest will post successfully. I have discussed this error with the SMS gateway provider