dnsmasq

安装Ubuntu 16.04出现的各种坑爹问题总结

邮差的信 提交于 2019-11-30 08:09:44
1. 没法无线上网 我的电脑是联想G490,安装Win8.1的时候那叫一个爽啊,无线网卡驱动、有线网卡驱动、双显卡驱动都给自动装好的。但安装好Ubuntu 16.04以后,AMD独显是没法用了,因为没驱动,没就没吧,还能凑合用,但是无线也没法用,这就没法忍了,有线倒是可以用,但是我是笔记本电脑,用不了无线这不扯淡嘛!百度了一番,终于可以无线上网了,方法如下: 在联网情况下,在命令行终端输入 sudo update-manager 调出 软件更新器 界面,如图 然后单击界面上的 设置… 按钮,调出 软件和更新 界面,如图 切换到 附加驱动 选项卡,稍等片刻,正常情况下就会看到自己的无线网卡驱动了,可以看到我的无线网卡驱动是Broadcom BCM43142,使用该驱动并点击 应用更改(A) ,然后就会发现自己的电脑能搜到无线信号了,如果还是搜不到无线信号,重启电脑试试。 注意: 在安装无线网卡驱动的过程中出了一个小插曲,我的电脑是Win8.1+Ubuntu 16.04双系统,且我是先安装Win8.1的,两个系统都是在UEFI下安装,安装Ubuntu 16.04的时候,我选择了安装Win8.1的时候产生的EFI分区作为Ubuntu的安装启动引导器的设备。在Ubuntu安装好以后,我用上面的方式去安装无线网卡驱动,发现操作过程中一切正常,但就是搜不到无线信号,通过查阅资料得知

cURL + Laravel Valet + dnsmasq not working

你离开我真会死。 提交于 2019-11-30 03:41:19
问题 when I execute a PHP script which runs a cURL request to a .test domain that is setup on my Mac with Laravel Valet/dnsmasq, I get this error printed : Could not resolve: mydomain.test (Domain name not found) When I test the domain in my browser, it's OK. When I run curl -Ik https://mydomain.test in the Terminal, I get HTTP/2 200 code, so it's OK. When I run curl -k https://mydomain.test in the Terminal I get the source code of the page, so it's OK. Why is it not working with cURL from PHP ? I

DNS not working within docker containers when host uses dnsmasq and Google's DNS server are firewalled?

人走茶凉 提交于 2019-11-30 03:22:26
The symptom is: the host machine has proper network access, but programs running within containers can't resolve DNS names (which may appear to be "can't access the network" before investigating more). $ sudo docker run -ti mmoy/ubuntu-netutils /bin/bash root@082bd4ead733:/# ping www.example.com ... nothing happens (timeout) ... ^C root@082bd4ead733:/# host www.example.com ... nothing happens (timeout) ... ^C (The docker image mmoy/ubuntu-netutils is a simple image based on Ubuntu with ping and host included, convenient here since the network is broken and we can't apt install these tools) The

简单配置内网DNS服务

廉价感情. 提交于 2019-11-29 19:09:21
需求:公司内部需要在访问某个域名时直接跳转到内部服务器上,其他域名可以正常访问。 1、安装 dnsmasq yum install dnsmasq 2、添加域名记录: vim /etc/hosts 直接添加需要在内网访问的域名和IP 3、配置默认的公网dns:(否则无法访问公网) vim /etc/resolv.conf 4、启动dnsmasq /bin/systemctl restart dnsmasq.service 来源: https://my.oschina.net/thanksgivingday/blog/3106593

公司内网安装dns,然后把域名ning.com直接指向ingress-nginx的ip

人盡茶涼 提交于 2019-11-29 16:52:13
configmap配置 [root@kubeadm-master dns]# cat dnsmasq-cm.yaml apiVersion: v1 kind: ConfigMap metadata: name: dnsmasq-configmap data: dnsmasq.conf: | resolv-file=/etc/dnsmasq.d/resolv.dnsmasq addn-hosts=/etc/dnsmasq.d/dnsmasqhosts ## 下面一句是把ning.com指给192.168.100.110,就是ingress-server的ip address=/ning.com/192.168.100.110 dnsmasqhosts: | 192.168.100.110 *.ning.com resolv.dnsmasq: | nameserver 114.114.114.114 nameserver 8.8.8.8 DaemonSet配置 [root@kubeadm-master dns]# cat dnsmasq-daemonset.yaml apiVersion: apps/v1 kind: DaemonSet metadata: name: dnsmasq labels: app: dnsmasq spec: selector: matchLabels:

DNS not working within docker containers when host uses dnsmasq and Google's DNS server are firewalled?

蹲街弑〆低调 提交于 2019-11-29 00:53:12
问题 The symptom is: the host machine has proper network access, but programs running within containers can't resolve DNS names (which may appear to be "can't access the network" before investigating more). $ sudo docker run -ti mmoy/ubuntu-netutils /bin/bash root@082bd4ead733:/# ping www.example.com ... nothing happens (timeout) ... ^C root@082bd4ead733:/# host www.example.com ... nothing happens (timeout) ... ^C (The docker image mmoy/ubuntu-netutils is a simple image based on Ubuntu with ping

Docker cannot resolve DNS on private network

谁都会走 提交于 2019-11-28 18:52:24
My machine is on a private network with private DNS servers, and a private zone for DNS resolution. I can resolve hosts on this zone from my host machine, but I cannot resolve them from containers running on my host machine. Host : root@host:~# cat /etc/resolv.conf # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN nameserver 127.0.1.1 root@host:~# ping privatedomain.io PING privatedomain.io (192.168.0.101) 56(84) bytes of data. Container : root@container:~# cat /etc/resolv.conf # Dynamic resolv

dnsmasq实现cname解析

痞子三分冷 提交于 2019-11-28 14:33:50
准备用阿里云的CDN,阿里云已经配置好了,打算先自己测试下再做CNAME解析到阿里云,hosts文件不支持CNAME,只能自己搭建DNS了,选择比较简单的dnsmasq,安装容易配置也简单 系统:CentOS 6.8 DNS: dnsmasq 1.安装dnsmasq yum -y install dnsmasq 2.修改/etc/dnsmasq.conf添加CNAME记录 cname = img.xxxx.com,img.xxx.com.w.kunlungr.com img.xxx.com.w.kunlungr.com是阿里配置好CDN之后生成的域名 3.ping img.xxx.com.w.kunlungr.com获取对应ip,并添加到hosts里 124.232.157.102 img.xxx.com.w.kunlungr.com 4.配置完成启动dnsmasq服务器 /etc/init.d/dnsmasq start dns就配置好了,找台windows,把dns指向这个dns服务器就可以测试CDN了 来源: 51CTO 作者: opsfans 链接: https://blog.51cto.com/13719882/2125413

【ZZ】kali下搭建WiFi钓鱼热点

核能气质少年 提交于 2019-11-28 13:09:00
在linux下建立无线热点并不像在windows下开启网络共享或者使用无线网卡驱动设置AP模式即可。 linux下的无线共享要用到两个软件:hostapd(创建无线热点)、dnsmasq(dns服务和dhcp服务). 1.安装以上两个软件: 1 2 apt- get install hostapd apt- get install dnsmasq 2.配置hostapd.conf文件 很多教程上说配置/etc/hostapd/hostapd.conf文件,但是初次配置时,在/etc/hostapd/下并没有发现这个文件。 好吧,用linux的强大查找功能吧: 1 # find -name hostapd 靠,没有。这个可以有!赶紧google一下,在网上可以直接找到hostapd.conf文件,如果直接copy下来放到/etc/hostapd/来可能版本不同不兼容。 想了想,应该在/etc/(毕竟是个配置文件),在到/etc/下找找吧: 1 /etc# find -name hostapd<br>发现以下文件:<br>./ default /hostapd<br>./init.d/hostapd<br>./hostapd<br>./network/ if -post-down.d/hostapd<br>./network/ if -pre-up.d/hostapd 进去看看:

Centos7 PXE Server Install Script

怎甘沉沦 提交于 2019-11-28 10:25:33
# pxeCentos7Install.sh# 挂载centos7镜像,这里为Centos7 1511 ,将作为pxe安装镜像# 安装前配置好centos和epel yum源 # 网卡ip和localip一致 localip="10.10.0.240" eth_name='eth0' dnsmasq_install() { yum -y install dnsmasq mv /etc/dnsmasq.conf /etc/dnsmasq.conf.backup dnsmasq_conf='interface='$eth_name' #bind-interfaces domain=centos7.lan # DHCP range-leases dhcp-range= '$eth_name',10.10.0.100,10.10.0.110,255.255.255.0,1h # PXE dhcp-boot=pxelinux.0,pxeserver,'$localip' # Gateway dhcp-option=3,'$localip' # DNS dhcp-option=6,'$localip',114.114.114.114 server=114.114.114.114 # Broadcast Address dhcp-option=28,10.10.0.255 # NTP