bugscanteam / dnslog Goto Github PK
View Code? Open in Web Editor NEWDNSLog 是一款监控 DNS 解析记录和 HTTP 访问记录的工具。
DNSLog 是一款监控 DNS 解析记录和 HTTP 访问记录的工具。
在dns请求的记录里,没有原始请求的地址啊,只有请求的域名,这个功能是否会在后期加上还是?
看到在weblog请求里有原始的ip地址
按照步骤启动服务后,浏览器访问admin后台失败,vps上返回301,可能是哪里的配置有问题呢
NS1_DOMAIN = 'ns1.a.com'
NS2_DOMAIN = 'ns2.b.com'
应该是
NS1_DOMAIN = 'ns1.a.com'
NS2_DOMAIN = 'ns2.a.com'
吧?
Django Version: | 1.8.7
ModuleNotFoundError
No module named 'models'
/home/ubuntu/DNSLog/dnslog/logview/views.py in , line 9
/usr/bin/python
3.8.5
['/home/ubuntu/DNSLog/dnslog', '/usr/lib/python38.zip', '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload', '/usr/local/lib/python3.8/dist-packages', '/usr/local/lib/python3.8/dist-packages/cloud_init-20.1-py3.8.egg', '/usr/lib/python3/dist-packages']
启动后访问报错是怎么回事呢
rt,我这边需要在内网使用,不知道能不能省去https,或者说要改哪些配置。
另外,dnslog是否不支持像ceye这样api读取结果呢?
更新证书总是失败。 每次只能手动设定记录来解决.
各位有遭遇同样的状况么?
用的let's encryption
我想问下dnslog搭建完成之后密码错误怎么回事啊
改了好几次密码还是显示错误~~~
我看演示站点里的css样式文件我在源码里都没找着。。。static里面只有一个main.css
1.按照说明修改完setting.py
2.在云解析上修改了ns记录
可是无法使用
导致走了很多弯路,让我误以为是本地dns服务出了问题
由于目前用的是泛域名证书,只支持该域名及其二级域名,但是我们记录所用的域名是三级域名,curl https的时候会报证书错,那我尝试用http的进行请求,发现读不到页面。查看了项目里的setting.py才发现SECURE_SSL_REDIRECT = True,这个配置是使页面一直重定向到https的,所以http的拿不到页面,而https又由于三级域名不受证书保护的问题,无法直接访问到(需要忽略证书错误,或信任该站点)。所以当我修改了该配置为False之后,才能正常记录http的请求。如果要正常使用三级域名的话还得花钱买证书,算咯。。。
rt
dnslog/logview/views.py
19行
remote_addr = request.META.get('HTTP_X_REAL_IP')
当不使用ngingx时应修改为
remote_addr = request.META.get('REMOTE_ADDR')
1.logview中缺少对webpage的支持
在模版中view.html文件
{% ifequal logtype 'web'%}
<div class="bs" data-example-id="hoverable-table">
<table class="table table-hover">
<thead>
<tr>
<th>#</th>
<th>path</th>
<th>ip</th>
<th>ua</th>
<th>date</th>
</tr>
</thead>
<tbody>
{% for weblog in weblogs %}
<tr>
<th scope="row">{{weblog.id}}</th>
<td>{{ weblog.path }}</td>
<td>{{ weblog.remote_addr }}</td>
<td>{{ weblog.http_user_agent }}</td>
<td>{{ weblog.log_time|date:'Y-m-d H:i:s' }}</td>
</tr>
{% endfor %}
</tbody>
</table>
<nav class="center-block">
<ul class="pagination">
<li><a class="btn btn-default" href="/?del=web" role="button">clear</a></li>
{% ifnotequal webpage 1%}
<li>
<a href="/?logtype=web&dnspage={{dnspage | add:-1}}" aria-label="Previous">
<span aria-hidden="true">«</span>
</a>
</li>
{% endifnotequal%}
{% for range in pagerange %}
<li><a href="/?logtype=web&dnspage={{range}}">{{range}}</a></li>
{% endfor %}
{% ifnotequal webpage numpages%}
<li>
<a href="/?logtype=web&dnspage={{dnspage|add:1}}" aria-label="Next">
<span aria-hidden="true">»</span>
</a>
</li>
{% endifnotequal%}
</ul>
</nav>
</div>
{% endifequal%}
部分带有webpage参数的请求,均为dnspage
后端无法获取到正确的webpage
步骤1中的a.com A记录是解析到1.1.1.1还是1.1.1.1 是指外网IP?
按照步骤搞好了,ns解析也够了48小时,启动了django,还是ping不到b.com
尝试了把步骤1中的两者都换过了(1.1.1.和外网IP的A记录)还是ping不到b.com
。。。
求解
方便直接查询解析记录 JSON最好
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.